How to Use a VPN Kill Switch on Windows
The built-in Windows VPN has no kill switch toggle. Learn how to look for one in your app, what a manual firewall approach involves, and how to test the result.
10 min readUpdated Oct 15, 2026By XPASS Editorial Team

A kill switch is a simple promise: if the VPN connection drops, your traffic stops instead of quietly continuing over your normal internet connection. On a phone or in some VPN apps it is just a switch in the settings. On Windows the question is more awkward, because the built-in VPN client does not have one and the answer depends on which client you actually use.
This guide explains how to use a windows vpn kill switch in practice. It covers what the built-in client does when a tunnel fails, how to look for a kill switch in your app, a cautious manual option with the Windows firewall, how to test whatever you set up, and the gaps that even a good kill switch leaves. For the general idea behind the feature, read what a VPN kill switch is first. This article is the Windows-specific version.
What happens on Windows when a VPN drops
With the built-in Windows VPN client, there is no kill switch toggle. When the tunnel fails, for example because Wi-Fi blinked or the laptop woke from sleep, the VPN connection simply disappears and the network settings return to normal. From that moment your apps use the ordinary connection again. Windows may show a notice, but it does not stop your traffic.
Here is a typical timeline for someone working in a cafe.
| Time | What happens | What the user sees |
|---|---|---|
| 10:00 | VPN is connected; work files sync | Everything looks normal |
| 10:12 | The cafe Wi-Fi drops for a few seconds | Possibly a brief spinner |
| 10:12 | The tunnel is lost; Windows reconnects to Wi-Fi without the VPN | Pages load again, so nothing seems wrong |
| 10:12 to 10:20 | Apps keep sending data over the cafe network, unprotected | No visible warning if the notice is missed |
| 10:20 | The user notices the VPN icon is gone | Reconnects |
Those eight minutes are the gap a kill switch exists to close. Whether eight minutes matters depends on what your apps did in that time. A banking page protected by HTTPS is still protected on the wire; a file-sync tool, an email app without encryption or a chat app might expose more. The article on what a VPN can and cannot protect puts this in context.

Step 1: look for a kill switch in your VPN app
The easiest route is a ready-made switch. Some VPN apps include a kill switch, usually under settings for security or connection. The wording varies, such as kill switch, network lock, block traffic when disconnected, or always-on protection. Not all apps have one, and a free app may place it behind a paid plan.
- Open your VPN app and look through its settings.
- Search for the words above. If you find one, read its description, because some options protect only during an unexpected disconnect and others block traffic until you connect.
- Turn it on, and read whether it applies at start-up.
- Test it using the method in this article. Never assume it works because the switch is on.
If you use the free VPNclient app that goes with an XPASS pass, check its settings screen for a security or connection option. We do not describe specific menu names for it here, since screens can change between versions. If you cannot find such a switch, do not assume one exists; use the manual option below or accept that your protection has a gap and watch the connection yourself. The download page lists the official links.
Step 2: choose a strategy when the app has no switch
If your client lacks a kill switch, you have a few options. Each has trade-offs.
| Approach | How it works | Effort | Main risk |
|---|---|---|---|
| App-level kill switch | The VPN app blocks traffic itself | Low | Not every app has it; must be tested |
| Manual firewall rules | Block outbound traffic except through the VPN | High | Easy to lock yourself out; breaks when settings change |
| Disconnect-on-drop habit | You notice the drop and turn Wi-Fi off | Medium | Relies on you spotting it |
| Managed always-on profile | An employer's policy forces VPN-only traffic | Handled by IT | Only for company devices |
| Use less sensitive apps | Keep sensitive tasks for when you are connected | Low | Depends on discipline |
For most people the best answer is to pick an app with a good kill switch, turn it on and test it. Manual firewall rules are for people who are comfortable with Windows settings, and they are described next with their limits in plain view.
Step 3: a cautious manual approach with the Windows firewall
Windows Defender Firewall can block outgoing connections. The principle of a manual kill switch is simple: allow traffic only when it goes through the VPN, and block everything else. The execution is harder than the principle, so read all of this section before you change anything.
Before you start
- Create a restore point: search for Create a restore point, select your system drive and choose Create.
- Make sure you can undo the changes, as shown at the end of this section.
- Do not do this on a PC managed by an employer or school.
- Know the VPN server address your connection uses, because the VPN must still be able to reach it.
The idea in steps
- Open Windows Security > Firewall & network protection > Advanced settings. This opens Windows Defender Firewall with Advanced Security.
- Create an outbound rule that allows the VPN app (or the Windows VPN components) to connect. Without it, the tunnel itself could not be built once outbound traffic is blocked. Limit the rule to the VPN server address if you know it.
- Create an outbound rule that allows traffic over the VPN adapter. In the rule's Advanced tab you can restrict it to specific interface types. Which interface type a VPN adapter reports depends on the client, and you may need to test whether Remote access or another type covers it.
- Allow only the local basics you really need on your normal network, such as getting an address from the router. Skip anything unnecessary.
- Set the outbound default to Block for the profile you use (Domain, Private or Public) under Windows Defender Firewall Properties.
- Connect the VPN and test. Pages should load. Then disconnect the VPN: pages should stop loading.
If pages do not load even while connected, a rule is missing or the interface type is wrong. Switch the default back to allow and adjust.
The limits you must accept
- The rule list is static. If the VPN server address changes or you switch locations, the allow rule may no longer match and your connection will fail until you update it.
- It affects every program, including Windows Update and sign-in tools, when the VPN is not connected.
- It is not the same as a purpose-built kill switch that watches the tunnel and reacts at once. Gaps between the tunnel failing and the block taking effect are small but not guaranteed to be zero.
- Mistakes lock you out of the internet. That is why the undo step matters.
How to undo it
- Open Windows Defender Firewall with Advanced Security, choose Windows Defender Firewall Properties and set Outbound connections back to Allow (default) for each profile.
- Delete or disable the rules you added.
- If you are stuck, use the system restore point you created.
Step 4: test the kill switch before you trust it
A kill switch you have not tested is a guess. Run this check once after setting up, and again after major Windows or app updates.
- Connect the VPN and open a command prompt.
- Start a steady ping. Type
ping -t 1.1.1.1and leave it running. You should see replies. - Interrupt the tunnel. Disconnect the VPN from its app, or turn the Wi-Fi off and on, whichever applies to the failure you want to test.
- Watch the ping window. With a working kill switch, replies stop (you will see request timeouts) until the VPN is back. If replies continue without the VPN, the kill switch is not working.
- Reconnect and check your public address. Use a public address checker to confirm that what the internet sees is what you expect while connected.
- Repeat after sleep. Close the lid, wait a minute, open it, and watch the connection come back. Sleep and resume is a common weak spot.
The article on how to test a VPN goes through leaks, speed and the kill switch together. If your VPN disconnects often, what to do when the VPN disconnects is a good companion.
What a kill switch does not cover
Even a well-working kill switch is only one layer. Be clear about what it leaves out.
- DNS and IPv6 leaks while connected. A kill switch acts when the tunnel drops. A leak during a healthy connection is a separate matter; see what a DNS leak is.
- Traffic before the VPN connects. If apps start with Windows before the VPN is up, they may send data over the normal network in that window unless the switch also applies at start-up.
- Other network adapters. A second Wi-Fi card, an Ethernet cable or a phone connected by USB creates another path that a simple rule may not handle.
- Applications that bypass the tunnel. Some tools use their own network settings or split tunneling.
- Protection against everything else. A kill switch does not stop phishing, malware or what you type into a website.

Who actually needs one
Not everyone needs the same level of care. A few quick profiles help.
- A remote worker on cafe Wi-Fi with client files and logins in the background: a kill switch is worth enabling and testing.
- A traveller who checks email and maps in a hotel: useful, but HTTPS already protects most of what they do; the VPN adds consistency. See using a VPN on hotel Wi-Fi.
- A family PC at home used for browsing and video: a nice extra at best; do not risk locking the household out of the internet with manual firewall rules.
- Someone handling sensitive material: a kill switch plus careful testing, and a clear plan for when the VPN fails.
If you are unsure, start with the app switch and test it. That alone covers most real needs.
Common mistakes
- Assuming the toggle works without testing it. Always run the ping test.
- Blocking everything and forgetting the VPN itself. If the VPN cannot reach its server, it cannot connect.
- Applying rules to the wrong profile. Windows has Domain, Private and Public profiles; check which one your network uses.
- Leaving the strict setting on when you change networks or locations. Update the allow rules when the setup changes.
- Not planning for failure. Know how to undo the rules before something goes wrong.
- Treating it as complete protection. It closes one gap among several.
Summary
The built-in Windows VPN has no kill switch, so you have three practical paths: find one in your VPN app and test it, build a careful and reversible firewall setup if you are confident with Windows, or watch the connection yourself. Whatever you choose, test with a steady ping, repeat after sleep and updates, and remember that a kill switch covers dropped tunnels, not leaks or phishing. If you want a short pass to use with an app, you can see the options on the pricing page.
Frequently asked questions
Does the built-in Windows VPN have a kill switch?
No. The built-in client has no kill switch toggle. When the tunnel drops, Windows normally goes back to using your regular connection. Some separate VPN apps include a kill switch as a setting, so check yours.
Can I build a kill switch with the Windows firewall?
A rough version is possible with firewall rules that allow traffic only through the VPN. It is fragile, easy to get wrong and can cut off your internet, so treat it as an advanced option, test it and know how to undo it.
How do I test whether my kill switch works?
Connect the VPN, start a continuous ping or keep a page open, then disconnect the VPN or the network and watch. With a working kill switch, traffic should stop instead of continuing on your normal connection. Then check your public address and DNS afterwards.
Does a kill switch stop DNS or IPv6 leaks?
Not by itself. A kill switch deals with the moment the tunnel drops. Leaks while connected, such as DNS or IPv6 leaks, are separate problems that you should test for separately.
Do I need a kill switch on a home PC?
It matters most when a brief exposure would hurt, for example work files on public Wi-Fi. For ordinary browsing at home it is a useful extra, not a requirement.
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

VPN Security
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 read

VPN Security
How to Test a VPN: Leaks, Speed and Kill Switch
A VPN is only useful if it does what it claims. This guide shows how to test any VPN yourself: leaks, kill switch, speed, latency, IPv6 and the app's own behaviour.
9 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

Device Guides
How to Set Up a VPN on Windows
Step by step: download VPNclient for Windows, install it, answer the Windows security prompts, sign in with your My Pass details and connect.
7 min read

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