Quick answer
What is a VPN kill switch?
A VPN kill switch is a setting that blocks every connection outside the VPN tunnel, so a device sends nothing over the open network when the tunnel drops. With a TunnelVPS server and WireGuard, it is a client option on Windows, a system setting on Android and a routing rule on Linux: 3 systems, 3 methods.
In brief
- Purpose: stop traffic from leaking onto Wi-Fi or mobile data when the tunnel fails.
- Where it lives: in the device, not on the server.
- WireGuard: Windows has a block option; Android has "Always-on VPN" and, on most phones, a block option; Linux uses
wg-quickrouting rules. - Cost: none; it is a setting, not a product.
How do you turn on a kill switch on each device?
| System | Setting | Where to find it |
|---|---|---|
| Windows | Block untunneled traffic | WireGuard app, when editing a tunnel with AllowedIPs = 0.0.0.0/0, ::/0 |
| Android | Always-on VPN, plus the block option where offered | Settings, Network & internet, VPN, settings icon next to WireGuard (path varies by maker) |
| iPhone, iPad, Mac | On-demand rules (keep the tunnel up, not a strict block) | WireGuard app, tunnel settings |
| Linux | Policy routing of wg-quick | Automatic for 0.0.0.0/0 peers; extra firewall rules for a strict block |
| Router | Firewall zones | Router firmware: block forwarding to the WAN outside the tunnel |
Why do VPN tunnels leak when they drop?
Because the device falls back to its normal route as soon as the tunnel stops answering. A phone that switches from Wi-Fi to mobile data, a laptop that wakes from sleep, a server that reboots: in each case, apps keep sending. Without a block, that traffic leaves through the local network in the clear, apart from the apps' own encryption.
A kill switch removes the fallback. If the tunnel is down, nothing leaves. The DNS leak guide covers the related case of name lookups escaping the tunnel.
Does WireGuard have a kill switch?
WireGuard itself is a protocol; the kill switch comes from each client or system. On Windows, the WireGuard app shows the option when a tunnel sends all traffic through it. The Windows guide shows where.
On Android, the system setting does the work for any VPN app. The Android guide covers it. On Linux, wg-quick adds routing rules for a peer with 0.0.0.0/0, so most traffic follows the tunnel; a strict block needs firewall rules on top.
Is a kill switch on the server side possible?
Not in a useful way: the leak happens on the device, before traffic ever reaches the server. The server can only refuse what it receives. What the server can do is stay up. A TunnelVPS server with systemctl enable wg-quick@wg0 restarts its tunnel after a reboot, which shortens any outage.
Updates matter too. The guide to keeping a VPN server updated explains reboots after kernel updates.
When should the kill switch stay off?
On a split tunnel, and on devices that must reach the local network. A tunnel that only carries traffic to the server, or to a few addresses, should not block the rest. A printer, a smart TV or a local NAS may also stop working with a strict block.
Keep it on for laptops and phones used on public Wi-Fi. The public Wi-Fi page explains why.
Do commercial VPN apps include one?
Most commercial VPN apps ship a kill switch toggle, often off by default. On a self-hosted server, the official WireGuard apps and the system settings above give the same result. TunnelVPS read the WireGuard install page on 16 November 2026: it lists official apps for iOS, macOS, Android and Windows, each with the options described here.
Kill switch questions
Does a kill switch slow the connection?
No. It only blocks traffic when the tunnel is down. While the tunnel works, traffic flows as usual.
What happens if the VPN server goes offline with the kill switch on?
The device loses internet access until the tunnel is back or the switch is turned off. That is the intended behaviour.
Which is the best kill switch setting on Android?
Turn on Always-on VPN for the WireGuard app, then the option that blocks connections without VPN if the phone shows it. That second option is the actual block.
Does a kill switch stop DNS leaks?
It stops lookups that would leave outside the tunnel. A DNS server set in the client file keeps lookups inside it in the first place.
Is a kill switch the same as split tunneling?
No, they are opposites. A kill switch forces everything through the tunnel; split tunneling sends only some traffic through it.
Verdict
- A kill switch is a device setting: turn it on for every phone and laptop that uses public networks.
- Your own server works with the same built-in options as any commercial VPN app.
Sources (3)
- WireGuard: installation and client apps — WireGuard (read 2026-11-16)
- wg-quick(8) manual page — man7.org (read 2026-11-16)
- Android help: connect to a VPN — Google (read 2026-11-16)
A tunnel worth keeping on
Home covers every phone and laptop in a household, at $6.37 a month on 12 months.
- Built by a person, 1 hour at most after confirmation
- Lost days credited back if a server cannot be delivered
- Pay in BTC, XMR, USDT, USDC, ETH, SOL or LTC
- DomaineGoat LLC · Panama