On a lot of industrial sites the router exists for one reason: to keep a VPN tunnel up to a control room, a camera server or a SCADA system. A ping to 8.8.8.8 tells you the mobile connection works. It tells you nothing about the tunnel, and the tunnel is the thing the customer is paying for.
VPN monitoring at a glance
| The gap | Mobile link up, VPN down, public ping still passes |
| What to ping | An address at the far end of the tunnel, such as the VPN head end |
| Keep | The tunnel’s own keepalive or dead peer detection |
| Recovery order | Restart the VPN, then the mobile connection, then the router |
Why a public ping misses it
The underlying connection and the tunnel fail independently. The mobile session can be perfect while the tunnel has dropped because of a certificate, a key renegotiation, a change at the far end, or a NAT timeout in the operator network. A public ping goes straight out to the internet, never touches the tunnel, and keeps passing.
What to ping
Ping something you can only reach through the tunnel: the VPN concentrator’s inside address, or a server on the far network. If that stops answering while a public ping still works, you know exactly which layer has failed. Many tunnel types, including OpenVPN, IPsec and WireGuard, also have their own keepalive or dead peer detection, and that should stay switched on as the first line of defence.
Recovery order
Restarting the whole router because the tunnel is down is a big hammer. It drops every LAN device and every other service. Where the router can do it, restart the tunnel first, then the mobile connection, and reboot only if neither works. On routers whose ping reboot cannot restart a VPN directly, keep the tunnel’s own keepalive doing that job, and let the ping rule handle the heavier steps further out.
On a private APN
Many VPN-dependent sites also use private APN SIMs, in which case public targets are not reachable at all and the tunnel target may be the only sensible ping target there is. Ping Reboot on Private IP SIM Cards explains the private APN side, and which IP address to ping covers choosing targets in general.
Questions
Will ping reboot notice a dead VPN?
Only if it pings something on the far side of the tunnel. A ping to a public address such as 8.8.8.8 does not go through the tunnel, so it keeps passing.
What should I ping to monitor a VPN?
An address you can only reach through the tunnel, such as the VPN head end’s inside address or a server on the far network.