Connection issues after approx. 14 days
Posted: Mon Jan 30, 2023 12:02 pm
Since a couple of months my OpenVPN, community edition 2.5.7 running on Windows Server 2016, is having connection issues every +/- 14 days. Connection is working, but when I try to connect to the server by RDP or a simple ping no data is transferred. Running connection do loose their data connection from time to time.
I am running on a real simple configuration, only thing I do see in the logs are a lot of unsuccessful connections from unknown IP addresses, by example:
It feels like I miss some setting, looks like the connections are running to the max and are not freed when connection is unsuccessful. I tried to block them on IP range, but as the IP addresses change all the time this is almost impossible.
Is there any configuration option to prevent this behavior? I can script a restart of the OpenVPN service every night, but I suppose this should be fixed instead of creating a workaround.
Thanks!
I am running on a real simple configuration, only thing I do see in the logs are a lot of unsuccessful connections from unknown IP addresses, by example:
And, a little older but also frequently found in the logs:2023-01-30 10:44:12 185.15.x.x:10694 TLS: Initial packet from [AF_INET6]::ffff:185.15.x.x:10694, sid=6a22eb44 5adb63fe
2023-01-30 10:44:22 185.15.x.x:1333 TLS: Initial packet from [AF_INET6]::ffff:185.15.x.x:1333, sid=6a22eb44 5adb63fe
2023-01-30 10:44:31 185.15.x.x:17388 TLS: Initial packet from [AF_INET6]::ffff:185.15.x.x:17388, sid=6a22eb44 5adb63fe
2023-01-30 10:44:41 185.15.x.x:7555 TLS: Initial packet from [AF_INET6]::ffff:185.15.x.x:7555, sid=6a22eb44 5adb63fe
2023-01-30 10:44:50 185.15.x.x:64740 TLS: Initial packet from [AF_INET6]::ffff:185.15.x.x:64740, sid=6a22eb44 5adb63fe
2023-01-30 10:45:00 185.15.x.x:54139 TLS: Initial packet from [AF_INET6]::ffff:185.15.x.x:54139, sid=6a22eb44 5adb63fe
2023-01-30 10:45:09 185.15.x.x:35130 TLS: Initial packet from [AF_INET6]::ffff:185.15.x.x:35130, sid=6a22eb44 5adb63fe
2023-01-30 10:45:12 185.15.x.x:10694 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2023-01-30 10:45:12 185.15.x.x:10694 TLS Error: TLS handshake failed
2023-01-30 10:45:12 185.15.x.x:10694 SIGUSR1[soft,tls-error] received, client-instance restarting
2023-01-30 10:45:18 185.15.x.x:28858 TLS: Initial packet from [AF_INET6]::ffff:185.15.x.x:28858, sid=6a22eb44 5adb63fe
2023-01-30 10:45:23 185.15.x.x:1333 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2023-01-30 10:45:23 185.15.x.x:1333 TLS Error: TLS handshake failed
2023-01-30 10:45:23 185.15.x.x:1333 SIGUSR1[soft,tls-error] received, client-instance restarting
2023-01-30 10:45:28 185.15.x.x:63085 TLS: Initial packet from [AF_INET6]::ffff:185.15.x.x:63085, sid=6a22eb44 5adb63fe
2023-01-30 10:45:31 185.15.x.x:17388 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
2023-01-30 10:45:31 185.15.x.x:17388 TLS Error: TLS handshake failed
2023-01-30 10:45:31 185.15.x.x:17388 SIGUSR1[soft,tls-error] received, client-instance restarting
I already increased the maximum number of clients in the past from 10 to 15. In a normal situation 2 users are logged in on the server.2023-01-22 01:01:48 185.192.x.x:2442 MULTI: new incoming connection would exceed maximum number of clients (15)
2023-01-22 01:01:49 100.12.x.x:3005 MULTI: new incoming connection would exceed maximum number of clients (15)
2023-01-22 01:01:50 100.12.x.x:1545 MULTI: new incoming connection would exceed maximum number of clients (15)
2023-01-22 01:01:52 79.143.x.x:10004 MULTI: new incoming connection would exceed maximum number of clients (15)
2023-01-22 01:01:53 100.12.x.x:41151 MULTI: new incoming connection would exceed maximum number of clients (15)
2023-01-22 01:01:53 79.143.x.x:10004 MULTI: new incoming connection would exceed maximum number of clients (15)
2023-01-22 01:01:54 100.12.x.x:30197 MULTI: new incoming connection would exceed maximum number of clients (15)
2023-01-22 01:01:55 185.192.x.x:33866 MULTI: new incoming connection would exceed maximum number of clients (15)
It feels like I miss some setting, looks like the connections are running to the max and are not freed when connection is unsuccessful. I tried to block them on IP range, but as the IP addresses change all the time this is almost impossible.
Is there any configuration option to prevent this behavior? I can script a restart of the OpenVPN service every night, but I suppose this should be fixed instead of creating a workaround.
Thanks!