Remote IP ping for OpenVPN?
I am looking for a way to specify which remote IP OpenVPN will ping to determine if the tunnel is up.
So I know that the –ping option will ping the remote OpenVPN gateway, but for complex reasons I need it to ping another IP in the remote subnet and then subsequently reconnect/SIGHUP1 if this ping fails. Is there a way to accomplish this? From looking at the OpenVPN docs I think it isn't, but maybe I have overlooked something...
What other options to I have? Ideally I would have a configurable ping frequency, like 4 seconds or even constantly ping and reconnect when more than 4 pings fail in a row.