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
Inactivity timeout / reconnect
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 3
- Joined: Mon Jun 19, 2023 4:23 pm
-
- OpenVpn Newbie
- Posts: 4
- Joined: Tue May 09, 2023 3:18 pm
Re: Inactivity timeout / reconnect
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.
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.
-
- OpenVpn Newbie
- Posts: 5
- Joined: Fri Mar 24, 2023 12:33 pm
Re: Inactivity timeout / reconnect
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
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
-
- OpenVpn Newbie
- Posts: 3
- Joined: Mon Jun 19, 2023 4:23 pm
Re: Inactivity timeout / reconnect
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.Domitian wrote: ↑Tue Jun 20, 2023 11:00 pmHello,
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.
-
- OpenVpn Newbie
- Posts: 3
- Joined: Mon Jun 19, 2023 4:23 pm
Re: Inactivity timeout / reconnect
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.
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.