Inactivity timeout / reconnect

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
LemajuPC
OpenVpn Newbie
Posts: 3
Joined: Mon Jun 19, 2023 4:23 pm

Inactivity timeout / reconnect

Post by LemajuPC » Mon Jun 19, 2023 5:48 pm

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

Domitian
OpenVpn Newbie
Posts: 4
Joined: Tue May 09, 2023 3:18 pm

Re: Inactivity timeout / reconnect

Post by Domitian » 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.
Last edited by Domitian on Wed Jun 21, 2023 3:20 pm, edited 1 time in total.

cogninaut
OpenVpn Newbie
Posts: 5
Joined: Fri Mar 24, 2023 12:33 pm

Re: Inactivity timeout / reconnect

Post by cogninaut » Wed Jun 21, 2023 9:35 am

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

LemajuPC
OpenVpn Newbie
Posts: 3
Joined: Mon Jun 19, 2023 4:23 pm

Re: Inactivity timeout / reconnect

Post by LemajuPC » Thu Jun 22, 2023 8:10 am

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.

LemajuPC
OpenVpn Newbie
Posts: 3
Joined: Mon Jun 19, 2023 4:23 pm

Re: Inactivity timeout / reconnect

Post by LemajuPC » Thu Jun 22, 2023 8:16 am

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.

Post Reply