Kill Switch
Also called: VPN kill switch, internet kill switch, network lock, network kill switch
Definition. A VPN kill switch is a set of firewall or operating system rules that blocks all traffic outside the VPN tunnel. If the tunnel fails, your connection stops instead of exposing your real IP address and DNS queries.
Stanislav Vovchyk · Updated Nov 7, 2026 · 22 tools have it
In short
- Standard modes only cover accidental drops. Only advanced, always-on or lockdown modes block after manual disconnects and across reboots.
- Firewall-based kill switches block before anything fails. Reactive ones act after detecting a drop and leave a short leak window.
- Android and iOS have documented OS-level leaks that bypass even a correctly working kill switch.
- TunnelVision (CVE-2024-3661) moves traffic off the tunnel while the VPN still shows connected, so the kill switch never fires.
A VPN kill switch is a set of firewall or operating system rules that stops any traffic from leaving your device outside the VPN tunnel. If the tunnel fails, apps lose internet access instead of falling back to your normal connection through your ISP or the local Wi-Fi. Your real IP address and DNS queries stay hidden.
What a VPN kill switch is (and what it isn't)
A kill switch only reacts to the tunnel going down. A WebRTC leak in the browser exposes your IP while the VPN is still connected, so the kill switch never fires. It also does nothing about browser fingerprinting, cookies, account logins or malware, and it doesn't make you anonymous.
DNS leak protection is a separate feature: it forces DNS queries through the tunnel while the VPN is connected. Firewall-based kill switches often restrict DNS too, but don't assume a given product does both.
As of November 2026, 22 of the 24 live VPN listings in our catalogue offer a kill switch. So the useful questions are which mode it runs in and which platforms it covers.
How a kill switch works under the hood
A well-built kill switch lives in the operating system's firewall, not inside the app: the Windows Filtering Platform (WFP) on Windows, pf on macOS, iptables or nftables on Linux, and the system VpnService on Android.
A reactive kill switch leaves a short leak window after the drop. A firewall-based one doesn't.
Firewall rules let only tunnel traffic out, so a dropped tunnel means failed connections, not leaks.
- Rules go in. When you connect, or at boot in always-on mode, the client installs rules that allow traffic through the tunnel interface (tun or wg), its own encrypted packets to the VPN server's IP, loopback, and usually DHCP and IPv6 neighbour discovery (NDP). LAN traffic is allowed only if you permit it. Everything else is blocked, including IPv6 and DNS sent to other resolvers.
- Normal operation. App traffic is encrypted in the tunnel and leaves through Wi-Fi, Ethernet or cellular, addressed to the VPN server. Your ISP or local network sees only the server's address.
- The tunnel drops. A Wi-Fi switch, a server timeout, an app crash or sleep and wake takes the tunnel interface down, or it stops passing traffic.
- The block holds. The rules stay in place, so app packets can't fall back to the physical interface. Connections fail instead of leaking.
- Reconnect. The client uses its allowed exception to reach the server, and app traffic resumes inside the tunnel.
- Disconnect. Standard mode removes the block rules when you disconnect on purpose. Advanced, permanent or lockdown mode keeps them until the VPN connects again, including across reboots.
A reactive kill switch watches the connection instead. It adds the block, or closes selected apps, only after it notices the drop, which leaves a short window for leaks. A system-level (firewall) kill switch has the block in place before anything fails, so that window doesn't exist.
For self-hosted WireGuard on Linux, the wg-quick(8) man page gives an official kill-switch example:
PostUp = iptables -I OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT
PreDown = iptables -D OUTPUT ! -o %i -m mark ! --mark $(wg show %i fwmark) -m addrtype ! --dst-type LOCAL -j REJECT
This rejects any packet that neither leaves through the tunnel nor is one of the tunnel's own encrypted packets. IPv6 needs matching ip6tables rules, or IPv6 traffic stays unprotected. The man page also notes that most DHCP traffic still gets past this rule, because most DHCP clients use PF_PACKET sockets, which bypass Netfilter.
Standard vs advanced (always-on) vs app kill switch
| Situation | Standard (automatic) | Advanced / always-on / lockdown | App kill switch |
|---|---|---|---|
| Accidental drop | Blocks | Blocks | Closes or blocks only the apps you picked |
| Manual disconnect or quit | Internet comes back | Still blocked | Not triggered |
| VPN app crash | A firewall-based one keeps blocking, a reactive one may leak | Keeps blocking | Depends on the app noticing the crash |
| Reboot | Traffic flows until the VPN connects | Blocked until the VPN connects | Not covered |
| Other apps | All covered | All covered | Use your real connection |
| Split-tunneled apps | Outside the kill switch | Outside the kill switch (Mullvad: they keep access even in Lockdown mode) | Not applicable |
| Examples | Proton "Standard", ExpressVPN Network Lock default ("Enable when connected") | Mullvad "Lockdown mode", Proton "Advanced", ExpressVPN "Enable at all times" | A chosen app such as a torrent client |
Vendor details as documented in November 2026:
- Mullvad (desktop): the kill switch "is always on and cannot be turned off in the settings", and it also blocks while the app is connecting. The optional Lockdown mode keeps blocking after Disconnect or Quit and can be turned on with
mullvad lockdown-mode set on. On macOS, some system services can leak before the Mullvad service starts. - Proton VPN: Standard is available on Windows, macOS, iOS/iPadOS, Android and Linux. Advanced, which blocks whenever you're not connected and survives restarts, is available on Windows, the Linux GUI and iOS/iPadOS (beta). Except on Windows, the kill switch can't be combined with split tunneling.
- ExpressVPN: Network Lock is on by default and active while connecting, connected, reconnecting or after a failed connection, but not while disconnected or disconnecting. "Enable at all times" exists on Windows, Mac and Linux. Local devices stay reachable by default, and the kill switch can't be turned off in the router app.
Auto-connect is not a kill switch. It starts the VPN at boot or sign-in but blocks nothing while the tunnel isn't up.
Built-in kill switches on Android, iOS/macOS, Windows and Linux
Android. The Android VPN developer guide puts always-on VPN in Android 7.0 (API level 24) and later. It only acts as a kill switch when the separate Block connections without VPN toggle is on. Then "the system blocks any network traffic that doesn't use the VPN", and Settings warns that you'll have no internet until the VPN connects.
On Android 8.0 and later, a notification you can't dismiss appears when an always-on VPN disconnects or fails to connect. Since Android 8.1, VPN apps can opt out of always-on support, and the controls then show greyed out. Apps that bind to a specific network lose their connection while the block is on. Proton's Android kill switch is simply this OS setting, so it isn't available on Android 7.x or earlier.
iOS, iPadOS and macOS. VPN apps build their kill switch on Apple's includeAllNetworks property, which sets "whether the system sends most network traffic over the tunnel". It defaults to false and is available from iOS 14.0, iPadOS 14.0, macOS 10.15 and visionOS 1.0.
"Most" is accurate. Apple always excludes DHCP and other control-plane traffic, captive-portal negotiation, some cellular-only services such as VoLTE, and traffic to companion devices such as Apple Watch, and developers can exclude more with excludeAPNs, excludeLocalNetworks and excludeCellularServices. According to Proton, Apple said full Always-on VPN is limited to supervised, MDM-enrolled devices.
Windows. The WireGuard for Windows client turns on a firewall kill switch automatically when a tunnel has exactly one peer with an AllowedIPs of /0. It allows the tunnel service's own packets, loopback, tunnel traffic, DHCP (v4 and v6), IPv6 NDP, and port 53 only to the configured DNS servers, and blocks everything else. Splitting the default route into 0.0.0.0/1 plus 128.0.0.0/1 (and ::/1 plus 8000::/1) keeps the kill switch off, and the UI has a checkbox for this.
Linux. Use the wg-quick PostUp/PreDown rules above for WireGuard, or the vendor CLIs: protonvpn config set kill-switch standard|off and expressvpnctl set networklock true|false.
Where kill switches fail: known leaks and attacks
iOS leaks, 2020 to 2023. On 2020-03-25 Proton disclosed that iOS 13.3.1 and 13.4 kept existing connections open outside the tunnel after a VPN connected, some of them (such as Apple push notifications) for minutes to hours. The bug was confirmed again in iOS 13.5 to 13.7. Apple didn't fix it directly and instead gave developers a kill switch capability in iOS 14.
On 2023-08-01 IVPN removed its kill switch for iOS 16 and later, because traffic to Apple servers (Maps, push notifications) leaked on iOS 16.1 and later even with includeAllNetworks on. IVPN said the flag still worked properly on iOS 15. Proton also documents that some Apple DNS requests can bypass the VPN on macOS and iOS.
Android connectivity checks, 2022. Mullvad reported on 2022-10-10 that Android sends connectivity-check traffic (DNS, HTTP(S), possibly NTP) outside the tunnel every time it joins Wi-Fi, even with Block connections without VPN on. Google closed issue 250529027 as "Won't Fix", calling it "working as intended". The checks can only be turned off through adb.
Android 16 QUIC bypass, 2026. On 2026-05-12, Mullvad reported that any unprivileged app on Android 16 can leak traffic outside the tunnel through registerQuicConnectionClosePayload, even with Always-on VPN and the block toggle both on. It affects every VPN app. Android's security team closed it as "Won't Fix (Infeasible)".
The workaround is an adb command that turns off QUIC graceful shutdown, and system updates may undo it. GrapheneOS patched the bug in release 2026050400, which was pulled from stable and later re-released.
TunnelVision (CVE-2024-3661). Leviathan Security published it on May 6, 2024. An attacker running DHCP on your local network uses option 121 (classless static routes, RFC 3442 from 2002) to push routes more specific than the VPN's, so your traffic leaves unencrypted over the physical interface. The VPN control channel stays up, the app still shows "connected" and the kill switch never fires.
Windows, Linux, iOS and macOS were affected in testing. Android isn't, because it doesn't support option 121. Leviathan's mitigations are Linux network namespaces (the strongest option), firewall rules that block the physical interface except DHCP and the VPN server (this still leaves a side channel), ignoring option 121 while the VPN is on, or using a phone hotspot or a VM with a non-bridged adapter.
TunnelCrack (2023). Researchers from KU Leuven, NYU and NYU Abu Dhabi published two attacks on 2023-08-08: LocalNet (CVE-2023-36672, CVE-2023-35838) and ServerIP (CVE-2023-36673, CVE-2023-36671). Every VPN product they tested was vulnerable on at least one device. All iOS VPN apps and about a quarter of Android apps were vulnerable to LocalNet, while Android 12 and later isn't affected by ServerIP.
Gaps in normal use. Standard modes don't cover the time between boot and the VPN connecting. Proton documents that your real IP can be exposed briefly while switching servers on macOS. A kill switch with no IPv6 rules leaves IPv6 traffic unprotected.
How to test your kill switch yourself
- Baseline. With the VPN off, note your real public IP from any what-is-my-IP page. Then turn on the kill switch, connect to a server in another country and confirm the IP has changed.
- Drop test. Start a continuous check:
ping -t 1.1.1.1on Windows,ping 1.1.1.1on macOS or Linux, or a loop ofcurl https://ifconfig.me. Break the tunnel without the app's Disconnect button by turning Wi-Fi off and on, unplugging Ethernet, or blocking the VPN server's IP at your router. Requests should fail and must never return your real IP. - Crash test. Keep the loop running and force-quit the VPN app or its background service (Task Manager, Activity Monitor, or
kill). A firewall-based kill switch keeps blocking, while a reactive one may leak. - Reboot test. Turn on the always-on or advanced mode, restart, and watch whether any traffic flows before the VPN connects. On Windows, run Wireshark on the physical adapter to spot packets that aren't going to the VPN server.
- Server-switch test. Change servers while the IP loop runs and check that your real IP never shows up in between.
- IPv6 and DNS. While the tunnel is down, run an IPv6 test and a DNS leak test. Both should be blocked, not just IPv4.
- Android. Go to Settings > Network & Internet > VPN, tap the gear icon next to your VPN app, and confirm that both Always-on VPN and Block connections without VPN are on. Connectivity checks will still leave the device by design.
- Linux/WireGuard. While connected, run
sudo iptables -S OUTPUT(ornft list ruleset) and confirm there's a REJECT or DROP rule for traffic not leaving through the wg or tun interface. Check ip6tables too.
What to look for when choosing a VPN for its kill switch
- Firewall-based and on by default, rather than a reactive monitor that closes apps after the drop.
- An always-on or lockdown mode that survives reboots and manual disconnects. I'd keep that mode on for any device that regularly joins public Wi-Fi, because the standard mode leaves traffic open between boot and connect.
- Coverage on every platform you use. Advanced modes are often desktop-only: Proton's Advanced isn't available on macOS or Android.
- IPv6 and DNS handled by the block rules, with DNS limited to the VPN's resolvers.
- Documented limits for iOS and Android, such as Apple-service exclusions, connectivity checks and the Android 16 QUIC issue, plus any workarounds.
- Clear behaviour with split tunneling and LAN access, since excluded apps sit outside the kill switch.
- Independent testing or audits rather than marketing claims. Pair it with a published no-logs policy if your goal is privacy, not just hiding your IP.
Of the 22 kill-switch services in our catalogue, 8 have a free plan or free version. Paid plans start at $1.69/mo, and the median starting price is $2.99/mo across the 14 with a published price. The words "kill switch" tell you nothing about the mode, so run the checks above on each one.
Tools that have it
From the directory, based on each tool's own feature list. Check the plan: some offer it only on paid tiers or certain apps.
- N
NordVPNKill switch in VPN apps · From $2.99/mo - E
ExpressVPNInternet kill switch listed · From $2.99/mo - S
SurfsharkKill switch in VPN apps · From $2.49/mo - P
Proton VPNKill switch and always-on VPN · Free, from $3.49/mo
- P
PureVPNInternet kill switch listed · From $1.69/mo - T
Turbo VPNKill Switch on premium · Free, from $3.33/mo
- I
IPVanishKill switch in VPN apps · See site - P
PrivateVPNKill switch listed in features · From $2.40/mo - V
VeePNKill Switch listed in features · From $1.99/mo
- A
Amnezia VPNKillSwitch listed in features · Free, from $3.30/mo - T
TunnelBearVigilantBear kill switch in apps · See site - H
Hotspot ShieldKill switch in its VPN apps · Freemium - M
Mullvad VPNBuilt in kill switch in app · From $5.61/mo
- P
Private Internet AccessKill switch listed in features · From $2.03/mo - W
WindscribeFirewall acts as kill switch · Freemium - C
CyberGhostStandard kill switch in apps · From $2.19/mo - B
BetternetListed on old site, VPN app · Free, from $6/mo
- V
VyprVPNKill switch in VPN apps · Paid - T
TorGuardNetwork lock kill switch in app · Paid - V
VPN Proxy MasterAutomatic kill switch · From $3.70/mo
Show all 22
FAQ
Should I keep the VPN kill switch on?
Yes, if you rely on the VPN to hide your IP. Use the always-on or advanced mode if you also want protection after reboots and manual disconnects, and accept that you'll have no internet until the VPN connects.
Why do I have no internet when the kill switch is on?
The block rules are working: the VPN isn't connected, so all non-VPN traffic is stopped. In always-on modes this also happens after you disconnect manually or restart, and Android warns that there will be no connection until the VPN connects.
Can I print or cast to local devices with the kill switch on?
It depends on the product. ExpressVPN keeps local devices reachable by default, while Proton documents that local network devices are unreachable on macOS and iOS with its kill switch on.
Is a kill switch enough for torrenting?
No. It only covers tunnel drops. It doesn't stop OS-level leaks, TunnelVision-style routing attacks or WebRTC leaks, and an app-only kill switch leaves every other app on your real connection.
Does the kill switch work if the VPN app crashes or the computer restarts?
A firewall-based kill switch keeps blocking after an app crash, while a reactive one may leak. Only advanced, always-on or lockdown modes keep blocking across a restart.
Can I use a kill switch with split tunneling?
Split-tunneled apps sit outside the kill switch, and Mullvad says they keep internet access even in Lockdown mode. Proton says its kill switch can't be combined with split tunneling on most platforms except Windows.
Cite this page
You are welcome to quote this entry and reuse its pictures with a link to this page.
Vovchyk, S. (2026, November 7). Kill Switch. capyrate Wiki. https://capyrate.com/wiki/kill-switch<a href="https://capyrate.com/wiki/kill-switch">Kill Switch, capyrate Wiki</a>