Kill switch
- VPN kill switch
- VPNL-G-006
- Leaks
- Version 1.1
- Updated
Definition
A kill switch is a VPN client feature that blocks network traffic whenever the VPN tunnel is not active, so that data cannot leave the device unprotected during disconnections, reconnections or network changes.
Kill switch explained
Without a kill switch, a dropped tunnel usually makes the operating system fall back to the physical network’s default route, and applications continue sending traffic in the clear — often without the user noticing. A kill switch prevents this with firewall rules (for example through the Windows Filtering Platform, pf on macOS or nftables on Linux) that allow traffic only through the tunnel interface and to the VPN server itself.
Implementations differ in two ways that matter for testing. Scope: an application-level kill switch only terminates selected programs, whereas a system-level kill switch blocks all traffic. Timing: some clients enable blocking only after they detect a drop, leaving a window in which packets escape; others keep the block in place for as long as the VPN is switched on, often labelled “always-on” or “strict”. On Android, the system settings “Always-on VPN” and “Block connections without VPN” provide this at operating-system level; iOS offers VPN apps a comparable option (includeAllNetworks), whose use depends on the app.
A kill switch can conflict with captive portals, access to local devices such as printers, and split tunnelling. The exceptions created for those cases are a common source of leaks and need to be tested separately.
How VPN Labs tests it
VPN Labs forces tunnel failure in several ways — terminating the client process, blocking the VPN server’s address upstream, switching networks, and suspending and resuming the device — while capturing all traffic on the physical interface. A scenario passes only if, in all 20 runs, no packet leaves the device outside the tunnel other than the pre-declared permitted local traffic (ARP, neighbour discovery, DHCP, link-local name resolution). The kill switch is tested in its default setting and in its strictest mode (the default and hardened profiles).
The methodology pages are the authoritative description of each procedure; this summary is for orientation.
Research on this topic
VPN Labs publications that discuss kill switch in depth.
-
VPNL-R-2026-003
Kill switches compared: firewall-based vs route-based enforcement
A VPN kill switch stops traffic leaving outside the tunnel while the tunnel is unavailable. Firewall-based designs use default-deny filters that outlive tunnel…
Read the publication -
VPNL-R-2026-001
How DNS leaks happen in VPN clients: a technical taxonomy
A DNS leak occurs when name-resolution traffic leaves a device outside the VPN tunnel, or reaches a resolver the VPN did not designate, while the tunnel is meant to be…
Read the publication -
VPNL-R-2026-005
IPv6 and WebRTC: the overlooked leak paths
IPv6 and WebRTC are the two leak paths most often missed in VPN testing. On dual-stack networks a tunnel that carries only IPv4 leaves IPv6 traffic, and the…
Read the publication -
VPNL-R-2026-006
Reading a VPN security audit report: scope, authorisation and severity
A VPN “security audit” claim is only as informative as its report: what was in scope, who authorised and paid for it, which versions were tested, how findings were…
Read the publication
Cite this definition
VPN Network Research Labs. (2026). Kill switch. VPN Labs Glossary. https://vpn.com.de/glossary/kill-switch
Glossary v1.1 · term ID VPNL-G-006 · last updated . The definition may be quoted with attribution; report errors under the corrections policy.
Related terms
Concepts that are tested, reported or cited together with kill switch.