krzee wrote:openvpn by default will continue trying to reconnect.
you can run openvpn as a windows service to be in the background.
if you redirect your gateway to go over openvpn, if you do not use the def1 flag you will not have a route to the internet when openvpn is down.
Hope that helps!
In my case the "attempt" fails with the following log messages repeated FOREVER in the log file:
Sat Feb 06 14:45:57 2016 SIGUSR1[soft,tls-error] received, process restarting
Sat Feb 06 14:45:57 2016 MANAGEMENT: >STATE:1454798757,RECONNECTING,tls-error,,
Sat Feb 06 14:45:57 2016 Restart pause, 2 second(s)
Sat Feb 06 14:45:59 2016 Socket Buffers: R=[8192->8192] S=[8192->8192]
Sat Feb 06 14:45:59 2016 UDPv4 link local: [undef]
Sat Feb 06 14:45:59 2016 UDPv4 link remote: [AF_INET]5.45.72.83:25000
Sat Feb 06 14:45:59 2016 MANAGEMENT: >STATE:1454798759,WAIT,,,
Sat Feb 06 14:46:59 2016 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Sat Feb 06 14:46:59 2016 TLS Error: TLS handshake failed
1.Is there a way to configure OpenVPN so that the reconnect succeeds, or do I need to contact the VPN provider?
2. If I need to detect this situation and reconnect using a script, is it possible to force a disconnect and reconnect through the OpenVPN management interface? I don't see how this is done.
Thanks.