
VPN Kill Switch: What It Is, How It Works & How to Test It
A VPN protects your traffic while it's actually inside the encrypted tunnel. The question most people never ask is what happens the instant that tunnel fails.
Your Wi-Fi is still connected. Ethernet still works. Your computer still has a perfectly good route to the internet — just not through the VPN anymore. Without another layer of protection, the operating system quietly falls back to your normal connection, and every background app (mail, cloud sync, Slack, OS updates, backup software) can start talking over your real IP before you ever notice the padlock disappeared.
A kill switch is what closes that gap: it blocks internet traffic outright when the protected VPN tunnel becomes unavailable, instead of letting your device fall back to its normal connection.
This matters for anyone using a VPN for privacy, travel, or remote work — and it matters more if the reason you're paying for a VPN is to keep a specific, stable IP (like a U.S. residential one). A kill switch failure doesn't just expose "a" public IP; it silently swaps out the exact IP identity your accounts, banking, and work tools have come to trust. That's the whole value proposition undone in the three seconds it takes a tunnel to drop.
What a kill switch actually does
VPN connected → internet works normally, routed through the tunnel.
VPN unexpectedly drops → internet stops entirely, until the tunnel is back.
VPN reconnects → internet works again.
Without a kill switch, step two instead looks like: VPN drops → your normal ISP connection quietly takes over → VPN reconnects later. During that window, anything running in the background can leak traffic over your real connection — and because modern devices are constantly syncing something, you may never notice it happened.
The tunnel and the kill switch are two different systems
This trips people up: WireGuard or OpenVPN builds the encrypted tunnel, but the kill switch is a separate mechanism enforced by the client app, the OS firewall, or the router around that tunnel. A fast, well-configured tunnel with no kill switch is not "protected" — it's just fast.
This is also why a residential VPN provider and a kill switch aren't in competition; they're two different jobs. OurVPNs provides the actual network path — a dedicated residential endpoint over standard WireGuard/OpenVPN — rather than a closed proprietary app. The kill switch enforcement is handled by your OS, VPN client, or router around that tunnel, which means you're not locked into one vendor's implementation and can choose the protection level (device-level or router-level) that fits your setup. More on pairing the two below. (Comparing protocols first? See OpenVPN vs WireGuard and the WireGuard Setup Guide.)
Standard vs. persistent kill switches
A standard kill switch protects you after the VPN connects — if the tunnel drops unexpectedly, traffic is blocked until it reconnects, though deliberately clicking "Disconnect" restores normal access.
A persistent kill switch is stricter: the device essentially can't reach the internet unless the VPN is active, including at startup, after sleep, or through network changes. The tradeoff is that if the VPN can't connect, you may have no internet at all — which is exactly what a security-conscious setup wants.
The three moments kill switches actually get tested
Most kill switch failures aren't dramatic — they happen in ordinary transitions:
Startup. Windows or macOS boots, Wi-Fi connects, and mail/cloud sync/messaging apps launch and grab a connection before the VPN app even starts. A persistent kill switch closes this window; a standard one often doesn't.
Sleep and wake. Wi-Fi reconnects and apps resume immediately, while the VPN can take several seconds to re-establish. This happens constantly for anyone who closes their laptop between meetings.
Network switching. Hotel Wi-Fi → Ethernet → hotspot → airport Wi-Fi — every change forces the tunnel to renegotiate, and even a fast-reconnecting protocol has a brief gap. Test this deliberately if you travel; our Remote Work Abroad Guide and Digital Nomad Connectivity Guide cover the rest of that setup.
How to actually test yours (don't just trust the toggle)
A checkbox that says "Kill Switch: Enabled" is not a test. Here's the routine:
Disconnect the VPN and note your normal public IPv4 (and IPv6, if you have it) and ISP as a baseline.
Connect the VPN and confirm the public IP now reflects the VPN, not your ISP. (If you're on a residential connection and want to understand what you're actually looking at, see Residential IP vs Datacenter IP vs ISP IP.)
Keep traffic running — a few open tabs or apps — so there's something to leak.
Force an unexpected failure, not just a graceful disconnect: kill the VPN process, stop the service, or physically disconnect and reconnect the network. An intentional "Disconnect" button and an actual crash are sometimes handled differently by the same app.
Try to load a new site while the VPN is down. If the kill switch works, it fails to load.
Reconnect the VPN and confirm the connection resumes through the protected route.
Then go further: check IPv6 separately (a VPN that only tunnels IPv4 can leave a live IPv6 route wide open), and run a DNS leak test — your visible IP can look correct while DNS queries quietly go to your ISP's resolver instead. WebRTC is worth a check too, since browsers can expose network info during video calls independent of your VPN. These deserve a full walkthrough of their own, which we'll cover in a dedicated leak-testing guide — for now, don't assume you're covered just because the IPv4 address looks right.
Quick platform notes
Windows/macOS: test all of startup, sleep/wake, Ethernet reconnection, and Wi-Fi switching — not just a manual disconnect. Note that auto-reconnect (restoring the VPN) and a kill switch (blocking traffic while it's down) are different features; a good setup has both.
Android: look for "Always-on VPN" plus "Block connections without VPN" in system settings — strong OS-level protection when supported.
iOS/iPadOS: behavior depends heavily on the specific app; only enterprise-managed configs reliably enforce it. Test the actual app you use rather than assuming.
Router-level: if a VPN-enabled router refuses to forward normal traffic when its tunnel drops, every device behind it — laptop, phone, smart TV — inherits the protection, which is convenient for travel setups and devices that can't run VPN software themselves. It's a different layer than a device kill switch, and some people run both (test carefully if you do — more layers means more places for a misconfiguration to hide). Docker users get the same fail closed behavior from Gluetun, and our Gluetun kill switch test shows how to prove it.
Full tunnel vs. split tunnel
A full-tunnel setup (all traffic → VPN) is the simplest to protect and test: the kill switch just needs one rule. Split tunneling — some traffic through the VPN, some not, by design — means the kill switch needs to know exactly which traffic is allowed to bypass it and which never should. If a single, consistent network identity is the goal, full tunneling is easier to get right.
Common mistakes worth avoiding
Trusting the setting without forcing a real failure. Testing only the graceful "Disconnect" button instead of a crash or network drop. Skipping startup and sleep/wake, which are the two most common leak windows. Checking IPv4 only and ignoring IPv6 and DNS. And treating auto-reconnect as if it were a kill switch — one restores the VPN, the other blocks traffic while it's down; you generally want both.
The 60-second checklist
Record your normal IP → connect the VPN → verify the new IP (v4 and v6) → run a DNS leak test → force the VPN to fail → confirm the internet actually stops → reconnect → confirm it comes back through the VPN → then repeat the failure test after restarting your computer, after sleep/wake, and after any major VPN or OS update.
Where OurVPNs fits
A kill switch doesn't determine what kind of IP you get — residential, datacenter, dedicated, shared, static, or rotating are separate questions (start with What Is a Residential VPN? if those terms are new). What the kill switch protects is the route to whichever endpoint you're using. OurVPNs gives you a stable, dedicated U.S. residential endpoint over standard WireGuard/OpenVPN; pairing it with a tested OS-level or router-level kill switch is what keeps that identity consistent even when a tunnel hiccups — which is the entire point of paying for one specific IP in the first place.
You can start a free 3-day trial and run every test in this article against your own devices and network before deciding.
FAQ
Do I need a kill switch? If it matters that your traffic consistently uses the VPN — and it does if you're relying on one specific residential IP — yes, it's one of the most important settings to actually verify.
Does WireGuard or OpenVPN have a built-in kill switch? Both protocols build the tunnel; kill-switch behavior comes from the client, OS firewall, or router around it. Test the specific app you use rather than assuming.
Is "Always-On VPN" the same as a kill switch? No. Always-on tries to keep the VPN connected; a kill switch blocks traffic while it's not connected. Good setups use both.
Can a kill switch stop DNS leaks? A well-built one should keep DNS on the same path as everything else, but test DNS separately rather than assuming.
Can a kill switch hide my physical location? No — that's Wi-Fi positioning, GPS, and OS location services, not network routing. See How to Hide Your Laptop Location on Windows & Mac.
Router or device kill switch — which is better? A device kill switch protects one machine and travels with it; a router kill switch covers everything behind it, including devices that can't run VPN software. Travelers often benefit most from router-level protection.
Further reading: Best Residential VPN · Dedicated IP vs Static IP vs Residential IP · Remote Work Abroad Guide