Hi,
I have been hosting my OpenVPN server for about 10 months now (via r7000 ddwrt). I have about 20 active connections at all times. For the most part everything runs like clockwork, but once in a blue moon a user will disconnect and dozens of “UNDEF” entries will appear. The logs report the following TLS handshake issue (server side) and just loops forever as i have recoonection attpems set to infiite:
daemon.err openvpn[6640]: 69.*.*.*:51353 TLS Error: TLS handshake failed
daemon.notice openvpn[6640]: 69.*.*.*:51353 SIGUSR1[soft,tls-error] received, client-instance restarting
daemon.notice openvpn[6640]: 69.*.*.*:58915 TLS: Initial packet from [AF_INET]69.*.*.*:58915, sid=231d2d1d a73ff4f7
daemon.err openvpn[6640]: 69.*.*.*:40704 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
I have tried to fix the issue a bunch of times but I just don’t seem to have the skills to dive in deeper. Also, it’s not the end of the world as a simple reboot of the client machine 100% of the time solves the problem.
But as of today I think I have a hunch/clue to the “once in a blue moon” occurrence. If the client machine is active/connected (through a router) and the external IP of the client router changes the reconnection attempts made by the client device (behind the router) forever get stuck in this TLS handshake issue.
if i'm right (big if) it would seem the client device isn't aware of the external IP change until the device is rebooted? Would anyone be able to provide insight or ideas I can try?
Thanks,