What Is a VPN Kill Switch?
A kill switch stops your device from quietly falling back to an unprotected connection when the VPN drops. Here is how the idea works and how to check it.
12 min readUpdated Oct 15, 2026By XPASS Editorial Team

A VPN works by sending your traffic through an encrypted tunnel. That protection lasts only as long as the tunnel does. If the connection drops for a few seconds, your device may carry on using your ordinary internet connection without telling you. A kill switch is the feature designed to close that gap.
This article explains the concept in general terms: what happens when a VPN drops, how kill switches typically work, how to test one and where the limits are. It does not describe any specific product feature.
What happens when a VPN connection drops
VPN connections are not permanent. They break for many ordinary reasons:
- Your phone moves from Wi-Fi to mobile data.
- The Wi-Fi signal weakens or the router restarts.
- The VPN server is busy or restarts.
- Your device wakes from sleep and the old tunnel has expired.
- A network blocks or interrupts the type of traffic the VPN uses.
When the tunnel breaks, the operating system usually falls back to the normal route. Apps that were mid-download, a chat app or a browser tab then keep running, but now over your regular network. Websites see your real IP address, and anyone who can see traffic on that network, such as the owner of a public Wi-Fi hotspot, sees the connection details again. You may not notice anything, because pages keep loading.
A plain example
You are using café Wi-Fi to log in to a work portal, with the VPN on. The café's router glitches for four seconds. The VPN drops and reconnects, but during those four seconds your laptop sent a background sync to a cloud service over the café network, using your real address. Nothing dramatic happened, but the protection you thought was constant was not. A kill switch would have blocked that sync until the tunnel returned.

How a kill switch works
The principle is simple: if the VPN is expected to be on, any traffic that does not go through it gets blocked. There are two common ways to do this.
| Type | How it behaves | Typical trade-off |
|---|---|---|
| App-level | The VPN app watches the connection. If the tunnel drops, the app closes selected applications or blocks their network access until the VPN returns. | Easier to build, but there can be a short gap between the drop and the reaction. |
| System-level (firewall rules) | The app or operating system sets rules so that only traffic through the VPN interface is allowed out. When the tunnel is down, nothing else can leave. | Stronger and usually faster, but can feel like "the internet is broken" until you reconnect. |
Some systems add a third behaviour, often called "always-on" VPN. The operating system itself keeps the VPN connected and, optionally, blocks any connection that is not using it. Android and several desktop operating systems offer settings in this style. See Android's own help page on connecting to a VPN for the general idea of how the system handles VPN connections.
For more background on how tunnels carry traffic, the Cloudflare overview of VPNs and our article on how a VPN works cover the basics.
Android: Always-on VPN and Block connections without VPN
On Android the kill switch is mostly a system feature rather than something each app has to invent. In the VPN settings of most Android versions, every saved VPN has a small settings (gear) icon, and inside it you will usually find two switches that matter here:
- Always-on VPN tells Android to start that VPN automatically, for example after a restart, and to keep it connected in the background.
- Block connections without VPN tells Android to refuse any network traffic that is not going through the VPN. This is the part that works like a system-level kill switch.
The usual path is Settings, then Network & internet, then VPN. Manufacturers move things around, so on some phones the same screen sits under Connections or More connection settings. Android's own help page on connecting to a VPN shows the general layout, and it is worth checking against your phone, because the wording varies between versions and brands.
A few practical points help avoid surprises:
- The blocking switch normally depends on Always-on. If Always-on VPN is off, the block option is greyed out or has no effect.
- The app has to support it. Not every VPN app can act as an always-on VPN. If the option is missing, the app or the connection type you picked does not offer it.
- Expect no internet while the VPN is down. That is the feature working, not a fault. Mobile data and Wi-Fi will both look dead until the tunnel is back.
- Sign-in pages can get stuck. Café, hotel and airport networks often ask you to accept terms on a web page first. With blocking on, that page may not load. Switch the block off for a minute, complete the sign-in, then switch it back on.
If you connect with the free VPNclient app, look in the app's own settings and on your My Pass page to see what your setup supports. Do not assume a setting exists because another app has it.
Windows and Linux: what to expect from a kill switch
Windows
The built-in VPN settings in Windows let you add and connect a VPN, but they do not offer one switch that says "block everything if the tunnel drops". On Windows a kill switch therefore usually comes from the VPN app. Many apps do it with firewall rules, using the Windows firewall and filtering platform, so that only the VPN network adapter is allowed to send traffic. Microsoft's support page on connecting to a VPN in Windows explains the built-in connection steps, but it is not a kill switch guide.
What this means in practice:
- Look for the option in the app's settings. It may be named kill switch, network lock, or something similar.
- Know what happens if the app crashes. Depending on the design, firewall rules may stay in place, so the internet looks dead until you reopen the app or restart, or they may be removed, which leaves you unprotected. Testing tells you which one you have.
- Check both Wi-Fi and Ethernet. A good rule covers every network adapter, not only the one you used when you first set it up.
Linux
Linux has no single standard kill switch. There are three common approaches:
- A setting in the VPN client, where the client offers one.
- Firewall rules written by you, using nftables or iptables. The logic is simple: allow loopback traffic, allow traffic to the VPN server's address on the physical network so the tunnel can re-form, allow everything through the tunnel interface, and drop the rest.
- Network manager settings that keep the VPN connection up and prevent other routes from being used.
If you write your own rules, handle IPv6 as well as IPv4, because a rule that covers only one of them leaves the other open. Make sure DNS queries cannot leave through the normal network interface. Always try new firewall rules on a machine you can sit in front of, because a mistake can cut you off from a remote login.
When a kill switch matters most
- Public Wi-Fi. Hotspots are the places where an unprotected moment is most visible to other people on the network. See public Wi-Fi safety.
- Remote work. If you reach company systems or sensitive documents, an accidental fallback to an open connection could expose more than a casual browser tab would. Guidance such as NIST's telework publication stresses secure remote access as an ongoing requirement, not a one-time step.
- Long downloads and background apps. Apps that reconnect automatically keep using whichever network is available.
- Frequent network changes. Commuting, walking between Wi-Fi zones or toggling between mobile data and Wi-Fi all create reconnections.
How to test a kill switch
Testing a kill switch takes only a few minutes and teaches you what your setup really does.
- Turn the kill switch on in the app or system setting, if your setup has one.
- Connect the VPN and confirm your address has changed using an IP-check page.
- Open something that keeps running, such as a video or a large download.
- Interrupt the VPN safely. Switch off the VPN server connection from another window, or toggle airplane mode on briefly. Do not unplug anything you rely on.
- Watch what happens to the traffic. With a working kill switch the video or download should stop or stall. If it carries on, your device has fallen back to the normal connection.
- Restore the VPN and confirm the traffic resumes only after it is connected.
If a test shows traffic leaking, check app permissions, update the app and read the official instructions for your setup. If you want a general routine for verifying a connection, see how to check if your VPN is working.
What the test results mean
| What you see during the test | What it usually means | What to do |
|---|---|---|
| The video or download stops until the VPN comes back | The kill switch is working | Nothing. Keep it on. |
| The video or download carries on without a pause | Traffic is falling back to the normal network | Check the setting is really enabled, update the app, test again |
| The app stops, but a browser or another app still loads pages | An app-level switch is covering only some apps | Look for a system-level or "block all" option |
| IP-check page shows your real address after the drop | The fallback happened and the block did not catch it | Treat the kill switch as not working and change your setup |
| Nothing works even after the VPN reconnects | The block rule is stuck | Restart the app or the device, then see the next section |
Repeat the test on each network you actually use, such as home Wi-Fi, mobile data and a public hotspot. A switch that behaves on one network may behave differently on another. Also repeat it after major system updates, because updates sometimes reset network or firewall settings.

VPN kill switch and no internet: how to fix it
The most common complaint about a kill switch is that it works too well. The internet disappears, and it is not obvious that the VPN is the reason. Work through these steps in order.
- Check the VPN status first. If the VPN shows disconnected or stuck on connecting, the kill switch is doing its job, and the real task is to bring the tunnel back.
- Reconnect the VPN. Disconnect fully, wait a few seconds and connect again. On a phone, switching airplane mode on and off for ten seconds often clears a stuck state.
- Test the underlying network. Switch between Wi-Fi and mobile data. Try opening a site on another device on the same Wi-Fi. If nothing works anywhere, the problem is the network, not the VPN.
- Look for a sign-in page. Hotel, café, airport and campus networks often need a web sign-in. Pause the kill switch or the block setting, complete the sign-in, then reconnect the VPN and turn protection back on.
- Check the login details. If the VPN rejects the username or password, it never connects, and a kill switch will keep everything blocked. Copy the details again from your My Pass page.
- Check the pass is still valid. A prepaid pass runs for a fixed number of days. After it ends, sign-in fails. The My Pass page shows the remaining time, and renewing adds new days on top of any that are left.
- Update the app and restart the device. Old versions can leave network rules half applied.
- As a last step, turn the kill switch off temporarily. This gets you online while you diagnose the problem. Turn it on again as soon as the VPN works, because leaving it off removes the protection you wanted.
If the VPN keeps dropping, a kill switch will keep interrupting you. The root cause is instability, and the Help Center guide on reconnecting when the VPN disconnects is the better place to start than turning protection off.
What to look for in a VPN with a kill switch
Searches for the best VPN with a kill switch mostly return ranking lists, and rankings are a poor guide because the feature differs by operating system, app version and connection type. Instead, judge the VPN on how clearly it explains the feature. Useful questions:
- Which platforms does the feature cover? A kill switch on desktop does not mean one exists on a phone.
- What type is it? App-level, system-level firewall rules, or the operating system's own always-on setting?
- Is it on by default, or must you enable it? Many people never open the settings.
- Does it handle IPv6 and DNS? A kill switch that blocks only IPv4 can still leak.
- What happens on reboot, sleep and network changes? The good behaviour is that the VPN reconnects and the block holds in between.
- Can you test it? If the documentation tells you how to verify the behaviour, that is a good sign.
- Does it explain its limits honestly? Be wary of any claim of perfect protection.
Whatever you choose, the final judge is your own test on your own devices. A short prepaid pass is one low-commitment way to try the behaviour before you rely on it, since there is no automatic renewal to cancel afterwards.
Limits and what to watch for
- It is a safety net, not a fix for unstable connections. If your VPN drops often, find out why. The guides on reconnecting when the VPN disconnects and improving connection stability are the right next step.
- It only covers what it is configured to cover. An app-level switch that closes only certain apps leaves others running. A system-level rule is broader.
- Reaction time is not zero. Even a good kill switch may allow a very short leak between the moment the tunnel fails and the moment the block takes effect.
- It does not repair other leaks. A DNS leak or WebRTC leak can happen while the tunnel is up.
- It can look like an outage. If you block everything and forget the VPN is off, you will wonder why nothing loads. Check the VPN status first.
- Behaviour varies by system. Settings and wording differ between Windows, macOS, Android and iOS, and not every protocol or app supports the same options.
Summary
A VPN kill switch blocks traffic when the VPN tunnel fails, so your device cannot quietly continue on an unprotected connection. App-level versions react to a drop, while system-level rules prevent anything leaving outside the tunnel. Whichever you use, test it deliberately, understand its limits and treat it as a backup rather than a replacement for a stable connection.
If you are choosing a way to get a VPN with a fixed number of days and no automatic renewal, the pricing page explains how a prepaid pass works, and the Help Center has setup and troubleshooting guides.
Frequently asked questions
What does a VPN kill switch do?
It blocks internet traffic from your device when the VPN connection drops, so apps cannot silently continue over your normal, unprotected connection. Traffic resumes when the VPN reconnects or when you turn the protection off.
Do I need a kill switch?
It matters most when an unexpected disconnect would cause real harm, such as using public Wi-Fi for sensitive work or running downloads that must not expose your real address. For casual browsing at home the risk is smaller, but the feature is still a sensible safety net.
Will a kill switch stop my internet working?
Yes, by design. While the VPN is down, the kill switch blocks traffic, so pages will not load until the VPN reconnects. If your internet seems dead, check whether the VPN has disconnected.
Does every VPN app have a kill switch?
No. Availability differs between apps, protocols and operating systems, and this article describes the concept in general. Check the app or connection method you actually use and test it.
How do I turn on Android Always-on VPN and Block connections without VPN?
Open Settings, then Network & internet, then VPN, and tap the gear icon next to your VPN. Turn on Always-on VPN, then Block connections without VPN. Menu names vary by phone, and the app must support always-on mode. Expect no internet while the VPN is down.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Need a VPN for a short trip or a busy month?
XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.
See passesKeep reading

Troubleshooting
How to Reconnect When the VPN Disconnects
VPN connections drop sometimes. Here is a calm, ordered routine for getting back online safely and working out why it happened.
7 min read

Troubleshooting
How to Improve VPN Connection Stability
A VPN that keeps dropping or stalling is usually reacting to the network or device around it. These steps help you find and fix the weak link.
5 min read

VPN Security
What Is a DNS Leak?
A DNS leak happens when your device asks for website addresses outside the VPN tunnel. Here is why it happens, how to test for it, and what to do about it.
10 min read