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 and verification
Every factual claim on this page is registered and independently checked (two independent sources for legal, numeric and security claims). How this works: fact-checking. Spotted an error? Tell us.
The Mullvad desktop app's kill switch is built in, always active from the moment you connect until you disconnect, and cannot be turned off in the settings.
- Mullvad VPN — Using the Mullvad VPN app (Windows, macOS, Linux)
- Mullvad VPN — Security audit report for our app available (Atredis Partners, October 2022)
Android sends connectivity-check traffic (DNS lookups, HTTP(S) and sometimes NTP) outside the VPN tunnel every time it joins a Wi-Fi network, even with 'Always-on VPN' and 'Block connections without VPN' enabled; Google closed related documentation complaints as 'working as intended'.
- Mullvad VPN — Android leaks connectivity check traffic (MUL22-03)
- Google — Incorrect VPN lockdown documentation (Google issue tracker, filed by Mullvad)
Mullvad documented DNS leaks on Android (May 2024) where apps calling the low-level getaddrinfo function — such as Chrome — can leak DNS queries while a tunnel is re-configuring, regardless of lockdown settings. single-source attributed
- Mullvad VPN — DNS traffic can leak outside the VPN tunnel on Android (May 2024)
A bug in Android 16 (reported May 2026) lets any app craft a payload through the QUIC connection-close API that is sent outside the VPN tunnel, exposing the device's real IP address even in lockdown mode; Google marked it 'Won't Fix' and GrapheneOS patched it. single-source attributed
- Mullvad VPN — Any app on recent Android versions can leak certain traffic (May 2026)
A further Android leak (reported September 2026) misuses keep-alive UDP connections offloaded to the Wi-Fi or cellular chip, letting any app send packets on port 4500 straight from the network hardware — bypassing 'Block connections without VPN' — without any special permission. single-source attributed
- Mullvad VPN — Another way to leak traffic on Android has been discovered (September 2026)
On iOS, traffic to Apple services (iCloud, Maps, Siri, notifications) can bypass the VPN tunnel, and a malicious Wi-Fi network can make the device send internet traffic outside it (TunnelCrack LocalNet); Mullvad's 'Force all apps' option (2026.2, using includeAllNetworks) prevents most of these leaks.
- Mullvad VPN — Using Mullvad app on iOS (last updated June 2026)
- Mullvad VPN — Why we still don't use includeAllNetworks (March 2025)
- Mullvad VPN — Force all app traffic into the tunnel (April 2026)
With includeAllNetworks enabled, a Mullvad iOS app update can leave the phone without internet access until it is rebooted; Mullvad therefore tells users to disconnect the VPN or disable the feature while updating.
- Mullvad VPN — Force all app traffic into the tunnel (April 2026)
- Mullvad VPN — Why we still don't use includeAllNetworks (March 2025)