openvpn client get disconnected every 2-3 hours

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
vikram.singh
Posts: 2
Joined: Tue May 28, 2019 9:32 am

openvpn client get disconnected every 2-3 hours

Post by vikram.singh » 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>

boink
Posts: 6
Joined: Wed May 22, 2019 4:21 am

Re: openvpn client get disconnected every 2-3 hours

Post by boink » Thu May 30, 2019 10:54 pm

> 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?

vikram.singh
Posts: 2
Joined: Tue May 28, 2019 9:32 am

Re: openvpn client get disconnected every 2-3 hours

Post by vikram.singh » Fri May 31, 2019 6:04 am

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

cedar
Site Admin
Posts: 1205
Joined: Sat Mar 09, 2013 5:37 am

Re: openvpn client get disconnected every 2-3 hours

Post by cedar » Tue Jun 11, 2019 8:40 am

Is the NAT session timed out?
How about using TCP instead of UDP?

Post Reply