openvpn client get disconnected every 2-3 hours
Posted: Tue May 28, 2019 9:49 am
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>
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>