I am having a problem where an open source VPN router intermittently goes down (IPSEC VPN Drops..)
When this happens, I have to manually restart the VPN service to bring the VPN tunnel back up...
Is it possible to use a batch file to use PING (just sending 1byte packets for low traffic)
When receiving ping replies... everything is good...
But when the pings timeout that means the VPN tunnel is down.
Can you provide an example batch file that will ping a remote host, then if there are more than, let's say for example 10 timeouts.. then the script will recognize this and execute a command to clear the tunnel?
I can provide the rest, i'm just looking for the logic/script code to determine if the network is timing out and if so, run a command.
Is this possible with Batch? Does anyone have any other suggestions?
(BTW, network monitoring tools aren't really an option as I haven't found one that can automate this particular VPN process. I've found ones which will send me an alert/email, but I'm looking for something that is capable of running a command (or calling on another batch script) to fix the tunnel.