I am looking for a way to keep a VPN tunnel alive. I have an OpenVPN server and some clients which only have access through the VPN. Sometimes, I need to restart my OpenVPN server. When I do that, all my clients lose connections and won't automatically reconnect once the server is up again. I'd like to know if there is a way that makes the client restart the connection e.g. after 60 seconds, if the connection is down and keeps trying until it gets connected.
PS. The keepalive
directive is set in the server directives like this:
keepalive 10 120