Is there a programmatic way in C# to detect the creation of a VPN tunnel? Or the dropping of one?
Essentially, we have several VPN tunnels in place on our web server. Sometimes they disconnect or go down and we have no idea why. "Keep Alive" does not seem to be working reliably.
So I was thinking of some sort of "heartbeat" application to periodically check the VPN to see if it is up and running, and if not, programmatically restart it.