Page 1 of 1

openvpn client get disconnected every 2-3 hours

Posted: Tue May 28, 2019 9:49 am
by vikram.singh
Hi,

I am using softether version 4.28.9669-1 on centos 7. I am getting the issue that the openvpn client get disconnected every 2-3 hours. Here are the logs for the issue:

Tue May 28 11:47:55 2019 us=18180 [server] Inactivity timeout (--ping-restart), restarting
Tue May 28 11:47:55 2019 us=18781 TCP/UDP: Closing socket

I had tried to increase the NatTcpTimeout and NatUdpTimeout for VirtualRouter and keepalive for client config file.but this didn't helped.

I want myself to connect for atleast for 8 hours without disconnect. Can somebody help me with this?
Please suggest somethis to fix this.

Client config file:
dev tun
proto udp
remote xxxxxxxxxxxxx 1194 udp
cipher AES-128-CBC
auth SHA1
resolv-retry infinite
nobind
persist-key
persist-tun
client
verb 4
auth-user-pass
remote-cert-tls server
auth-nocache
reneg-sec 0
keepalive 30 120

<ca>
..
</ca>

<cert>
..
</cert>

<key>
..
</key>

Re: openvpn client get disconnected every 2-3 hours

Posted: Thu May 30, 2019 10:54 pm
by boink
> I want myself to connect for atleast for 8 hours without disconnect. Can somebody help me with this?
Please suggest somethis to fix this.

Instead of using the OpenVPN client, have you considered using the Softether SSTP client?

Re: openvpn client get disconnected every 2-3 hours

Posted: Fri May 31, 2019 6:04 am
by vikram.singh
Hi,

No I have not used SSTP client.
Can you suggest something for openvpn client? I can share server side config file if you want.

Thanks

Re: openvpn client get disconnected every 2-3 hours

Posted: Tue Jun 11, 2019 8:40 am
by cedar
Is the NAT session timed out?
How about using TCP instead of UDP?