# What is a VPN kill switch?

> A VPN kill switch blocks all traffic outside the tunnel when the VPN drops. WireGuard does it on 3 systems with a setting or a routing rule.

- URL: https://tunnelvps.com/what-is-a-vpn-kill-switch/
- Last updated: 2026-11-16
- Publisher: TunnelVPS (https://tunnelvps.com)

What a kill switch blocks, why a dropped tunnel leaks, and how to get the same protection with your own WireGuard server on each device.

**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-quick` routing rules.
- **Cost**: none; it is a setting, not a product.

## How do you turn on a kill switch on each device?

*Kill switch method per system for a WireGuard tunnel that routes all traffic, from the WireGuard and Android documentation read 16 November 2026*

| 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](https://tunnelvps.com/guides/how-to-check-a-vpn-for-dns-leaks/ "How do I check a VPN for DNS leaks?") 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](https://tunnelvps.com/guides/wireguard-windows/ "How do I set up WireGuard on Windows?") shows where.

On Android, the system setting does the work for any VPN app. The [Android guide](https://tunnelvps.com/guides/wireguard-android/ "How do I set up WireGuard on Android?") 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](https://tunnelvps.com/guides/how-to-keep-a-vpn-server-updated/ "How do I keep a VPS 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](https://tunnelvps.com/best-vpn-for-public-wifi/ "What is the best VPN for public Wi-Fi?") 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

1. [WireGuard: installation and client apps](https://www.wireguard.com/install/) — WireGuard (read 2026-11-16)
2. [wg-quick(8) manual page](https://man7.org/linux/man-pages/man8/wg-quick.8.html) — man7.org (read 2026-11-16)
3. [Android help: connect to a VPN](https://support.google.com/android/answer/9089766) — 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. [Order Home for 12 months](https://tunnelvps.com/app/checkout/?plan=home&term=12m&image=ubuntu-24.04&from=what-is-a-vpn-kill-switch&lang=en) · [Device guides](https://tunnelvps.com/guides/ "How do I connect each device to my own VPN server?")

---

TunnelVPS: TunnelVPS rents Linux KVM servers for a personal VPN (WireGuard, Outline or AmneziaWG) in New York, Dallas, Los Angeles, London, Amsterdam and Frankfurt, paid in crypto with no ID document. 5 plans from 2 to 16 GB of RAM and 2 to 6 TB of traffic a month cost the same in all six cities; on the 12-month term each is priced at least 25% under a named comparable plan of a no-KYC crypto host, read on 16 November 2026. The operator is DomaineGoat LLC, Panama.
