Kill switches per OS — and the leaks that still exist
Short answer: a kill switch cuts your internet whenever the VPN tunnel drops, so traffic cannot slip out through your bare connection. Every OS implements this differently, and none of them is airtight: Android has four documented bypasses of its “Block connections without VPN” setting, and iOS exempts Apple services and some local network traffic even when the tunnel is forced. Know what yours does and does not cover.
What a kill switch actually is
Three ideas get lumped together under one name:
- Fail-safe blocking: while the VPN is connected, if the tunnel breaks, block everything until it recovers. This is the core kill switch and every serious app has one.
- Blocking after deliberate disconnect: some apps (Mullvad calls it “Lockdown mode”) keep blocking even when you disconnect on purpose, so “VPN off” means “offline”.
- App-level exclusions: split tunneling deliberately lets chosen apps bypass the tunnel — the opposite of a kill switch, and worth checking that it is not switched on by accident.
The per-OS picture
| Platform | How it works | Known gaps |
|---|---|---|
| Windows | The app blocks traffic at the network layer when the tunnel is down; some use the system firewall. Mullvad fixed a shutdown-time leak window in its 2022.5 app after an audit. | Behaviour differs per provider — check that your app blocks both on failure and (optionally) on deliberate disconnect. |
| macOS | Same principle. Mullvad’s kill switch is always on and cannot be disabled; its optional Lockdown mode blocks after deliberate disconnect too. | A documented boot-time leak: traffic can leave during startup before the VPN service starts, because macOS does not let a system service define start-up order. |
| Linux | Mostly DIY: provider apps, or iptables rules added on connect (the pattern documented in the wg-quick man page) that reject anything not leaving via the tunnel. | Rules must be written correctly and survive reconnects; most DHCP traffic still passes through the rules by design. |
| Android | The OS has the switch: enable the VPN app, then turn on “Always-on VPN” and “Block connections without VPN”. | Four documented bypasses — see below. |
| iOS | VPN profiles run through Apple’s Network Extension framework; Mullvad uses “on-demand” connect as a kill switch, and its optional “Force all apps” sets includeAllNetworks. | Apple services and local-network traffic exemptions — see below. |
The documented Android bypasses
Mullvad’s security engineers have published four distinct Android leaks, all affecting every VPN app, not just theirs:
- Connectivity checks (October 2022). Android sends connectivity-check traffic — DNS lookups, HTTP(S), sometimes NTP — outside the tunnel every time it joins a Wi-Fi network, even with lockdown on. Google’s issue tracker records this as intended behaviour. It reveals metadata (your real source IP, when you arrive home) but not your browsing.
- DNS leaks (May 2024). Apps calling the low-level
getaddrinforesolver — Chrome among them — can leak plaintext DNS during tunnel re-configuration or crashes, “regardless of whether Always-on VPN and Block connections without VPN is enabled or not”. - QUIC close payload (May 2026). A bug in Android 16 lets any app craft a payload through the QUIC connection-close API that is sent outside the tunnel, exposing the real IP address. Google marked it “Won’t Fix”; GrapheneOS patched it.
- Hardware keep-alives (September 2026). Any app can misuse NAT-traversal keep-alive connections that the OS offloads to the Wi-Fi or cellular chip, sending UDP packets on port 4500 straight from the hardware — past the lockdown check — with no special permission.
The honest conclusion Mullvad draws: lockdown mode is still worth enabling and still blocks the ordinary leaks, but on Android it “cannot be treated as a guarantee”. Only install apps you trust, and prefer a security-focused Android build such as GrapheneOS for anything sensitive.
The documented iOS exemptions
- Apple services can bypass the tunnel. Mullvad’s iOS guide lists traffic to iCloud, Maps, Siri and notifications as able to leave outside the VPN, plus background connections established before the VPN connected.
- Local networks are exposed. Without
includeAllNetworks, a hostile Wi-Fi network can make the device send internet traffic outside the tunnel (the TunnelCrack LocalNet attack). - “Force all apps” (Mullvad 2026.2) sets Apple’s
includeAllNetworksflag and prevents most of these leaks — but Mullvad documents that an app update with the flag set can leave the phone offline until it is rebooted, and traffic leaks during the update either way. If you enable it, know the trade-off and how to recover (disconnect before updating, or reboot).
Practical hardening
Given the gaps above, sensible hardening in order of effort:
- Block IPv6 where your VPN doesn’t handle it. Many leaks happen because a dual-stack connection has an IPv6 route the tunnel doesn’t cover. If your provider doesn’t tunnel IPv6, turn IPv6 off on the device or the router — then it cannot leak.
- Disable WebRTC in your browser (or use an extension that does), so websites cannot query your local interfaces for your real address.
- Test, don’t assume. Run a leak test in the connected state, after a deliberate disconnect, and after a Wi-Fi drop. Our leak test guide has the checklist.
- Put the tunnel on the router. A router-level VPN (see our router guide) with its kill switch enabled removes the device-level boot-time and OS-exemption problems for everything behind it — at the cost of per-device control.
What this does NOT protect you from
- A hostile or compromised VPN app. The kill switch is your guard against the tunnel failing, not against the software you installed betraying you.
- Device-level bypasses listed above until the OS vendors fix them.
- What you do while logged in — a kill switch protects where your traffic exits, not who you are.
Is this legal? Yes. Using a kill switch is lawful in the UK. A VPN does not make anything that is illegal without it legal.
Sources
- Mullvad VPN — Using the Mullvad VPN app (accessed 1 Dec 2026).
- Mullvad VPN — Security audit report for our app available (Atredis Partners, October 2022) (accessed 1 Dec 2026).
- Mullvad VPN — Android leaks connectivity check traffic (10 Oct 2022) (accessed 1 Dec 2026).
- Google issue tracker — Incorrect VPN lockdown documentation, issue 249990229 (accessed 1 Dec 2026).
- Mullvad VPN — DNS traffic can leak outside the VPN tunnel on Android (3 May 2024) (accessed 1 Dec 2026).
- Mullvad VPN — Any app on recent Android versions can leak certain traffic (12 May 2026) (accessed 1 Dec 2026).
- Mullvad VPN — Another way to leak traffic on Android has been discovered (10 Sep 2026) (accessed 1 Dec 2026).
- Mullvad VPN — Why we still don’t use includeAllNetworks (26 Mar 2025), Force all app traffic into the tunnel (21 Apr 2026) and Using Mullvad app on iOS (updated June 2026), all accessed 1 Dec 2026.
- wireguard-tools — wg-quick(8) manual page (Arch Linux mirror) (accessed 1 Dec 2026).