Page 1 of 1

Inactivity timeout / reconnect

Posted: Mon Jun 19, 2023 5:48 pm
by LemajuPC
Hello Guys,

i am new here and hope i can get help.
I use a long time OpenVpn on my server. But actually I get crazy with it.

For sure is this discused a few times, i found many posts on the net, but nothing works.

Every x all my clients get a reconnect and a Inactivity timeout (--ping-restart) from the server.
Indifferent if the client produces traffic over the VPN. The server closes the connection and reconnect i again.

No firewalls are running, not on the client, not on the server side, not on the router (for test purpose) without changings. DNS Server is used google.

I don´t know where to search any more.


Maybe someone have an Idea where to search.


the Log files are to big more then 60000 characters. I post the link for downloading it:
https://www.swisstransfer.com/d/c4aaf9d ... 12ca3284ab

Re: Inactivity timeout / reconnect

Posted: Tue Jun 20, 2023 11:00 pm
by Domitian
Hello,
I just spent 3-4 hours trying to figure out the same problem, maybe it is the same issue for you.
This is how I solved it:
ip.publicvm.com -> my server IP ######### 192.168.1.1 -> router IP ########### 192.168.1.30: OpenVPN server IP on LAN
On the router for the computer that has my OpenVPN server, create a Forwarding Virtual Server port for 1196 (or whichever port you select for openVPN communication), so that any
UDP traffic for port 1196 that reaches ip.publicvm.com (i.e. 192.168.1.1) will automatically be routed to my server at 192.168.1.30.

Re: Inactivity timeout / reconnect

Posted: Wed Jun 21, 2023 9:35 am
by cogninaut
I find odd that all your connections on the server side ping-restart every 5 minutes. The clients restart themselves when the tcp connection drops, this is as expected.

I dont know of any mechanism that would do this apart from a cron job, but it seems to me that something sends a SIGUSR1 to your server every 5 minutes.

Please note I am not an expert, I was just debugging a similar problem of mine and took interest. Hope this helps

Re: Inactivity timeout / reconnect

Posted: Thu Jun 22, 2023 8:10 am
by LemajuPC
Domitian wrote:
Tue Jun 20, 2023 11:00 pm
Hello,
I just spent 3-4 hours trying to figure out the same problem, maybe it is the same issue for you.
This is how I solved it:
ip.publicvm.com -> my server IP ######### 192.168.1.1 -> router IP ########### 192.168.1.30: OpenVPN server IP on LAN
On the router for the computer that has my OpenVPN server, create a Forwarding Virtual Server port for 1196 (or whichever port you select for openVPN communication), so that any
UDP traffic for port 1196 that reaches ip.publicvm.com (i.e. 192.168.1.1) will automatically be routed to my server at 192.168.1.30.
Dont know if I understand well, but the Package comes in over the Public IP and the Router routes all Package with the VPN Port direct to the VPN Server.

Re: Inactivity timeout / reconnect

Posted: Thu Jun 22, 2023 8:16 am
by LemajuPC
Now I copied another "working" Server instance and migrate all config and ccd Files to it and works well.
All settings are the same and unchanged. So maybe an Update has caused some issue.

Where the SIGUSR1 command should come i have no idea.