Dear community,
Looking at my logs I discovered openvpn server kept restarting every 60 sec, due to:
Inactivity timeout (--ping-restart), restarting
But the tunnel is OK. I can ping both ends from both sides and when I do that, openvpn is not restarting. When I do a common ping, I observe:
Mon Jan 8 13:41:43 2024 daemon.notice openvpn(server1)[3013]: TCPv4_SERVER WRITE [132] to [AF_INET]86.213.XXX.XXX:42752: DATA len=132
Mon Jan 8 13:41:43 2024 daemon.notice openvpn(server1)[3013]: TCPv4_SERVER READ [132] from [AF_INET]86.213.XXX.XXX:42752: DATA len=132
But if the network is not in use (inactivity), I can just see:
TCPv4_SERVER WRITE [68] to [AF_INET]86.213.XXX.XXX:40696: DATA len=68
6 times, then a restart.
Of course, I have on my server:
keepalive 10 60
I though internal probes were there to keep alive the connection and avoid restarting. Is there something I'm missing?