Guides · Published · Updated on
Block connections without VPN: the Android kill switch
Android has a VPN kill switch built in. It’s two settings in the system’s VPN screen: Always-on VPN and Block connections without VPN. With both on, no app can get around your VPN app: if the VPN isn’t running, apps have no internet. With only the first one on, apps can still use your normal connection in the gaps.
Many VPN apps also have a setting called “kill switch”. Some block traffic inside the app itself, others open the two Android settings for you. Android’s version is the stronger one, because Android enforces it, not the app.
One thing the Android setting doesn’t decide is where your traffic goes once it’s inside the VPN app. That’s still up to the app. In unbraid, for example, apps you set to Direct keep using your normal connection with blocking on.
What each setting does
Always-on VPN tells Android which VPN app to keep running. Android starts it when the phone boots and starts it again if it stops. Each Android profile can have one VPN app set to Always-on. It’s been in Android since version 7.
Block connections without VPN makes Android drop any traffic that doesn’t go through that VPN app. When you turn it on, Android warns you that you’ll have no internet until the VPN connects. You can only turn it on once Always-on is on.
Android’s developer documentation describes both under Always-on VPN.
What happens to your apps
| When | Neither on | Always-on only | Both on |
|---|---|---|---|
| The phone starts | Normal connection until you connect the VPN | The VPN starts by itself; apps can go online in the seconds before it’s up | No internet until the VPN is up |
| The VPN stops or crashes | Normal connection | Normal connection until Android restarts the VPN | No internet until it’s back |
| You pause the VPN | Normal connection | Normal connection | No internet |
| An app the VPN leaves out | Normal connection | Normal connection | No internet, unless the VPN app carries that app’s traffic itself |
The last row catches people out. A VPN app can exclude apps from its tunnel, which is how most split tunneling works on Android. With blocking on, Android treats those apps like everything else outside the VPN and cuts them off. A company that manages the phone can set exceptions to the blocking. A normal user can’t.
Why the Android setting is the stronger one
A kill switch inside a VPN app only works while the app’s VPN service runs. If battery saving stops it, an update restarts it or it crashes, its blocking goes too, and for a moment apps use your normal connection. Android’s blocking doesn’t depend on the app. It stays in place whatever the app is doing.
Some VPN apps also keep their tunnel open but empty while they reconnect, so traffic waits instead of leaking. That helps when the app changes server. It doesn’t help when the app isn’t running at all.
How to turn them on
On a Pixel and most phones close to stock Android:
- Open Settings, Network & internet, VPN.
- Tap the gear next to your VPN app.
- Turn on Always-on VPN.
- Turn on Block connections without VPN, and confirm.
On a Samsung phone the VPN screen is under Settings, Connections, More connection settings, VPN. On other phones, search Settings for “VPN”.
If the switches are greyed out, the VPN app may not support Always-on (Android lets apps opt out), or the phone is managed by work or school. If you don’t see your VPN app at all, connect it once first: Android lists VPN apps after you’ve allowed them.
The work profile and Android 15’s Private Space are separate profiles, each with its own VPN settings. A VPN set to Always-on in your personal profile doesn’t cover apps in the other ones.
What still gets past
- The VPN’s own connection. The VPN app has to reach its server over your normal connection. That traffic is encrypted.
- Android’s connectivity checks. Mullvad documented in 2022 that Android sends its connectivity checks outside the tunnel when it joins a Wi-Fi network, even with blocking on. They include DNS lookups and HTTP(S) requests. A normal VPN app can’t switch them off. Mullvad explains how to change the checks with adb if you want to.
- Wi-Fi sign-in pages. On some phones the sign-in page of a hotel, train or airport Wi-Fi won’t load with blocking on, because the VPN can’t connect before you’ve signed in. If that happens, turn blocking off, sign in, then turn it on again. While it’s off, other apps can use your normal connection too.
The trade-off
With blocking on, apps in that profile stay offline whenever the VPN can’t connect: your provider is down, your account has expired, the network blocks VPNs. That’s what a kill switch is for. Still, find the setting before you need it, so you can turn blocking off on a network that won’t let the VPN through.
Apps that need your normal connection can also break. Android Auto is one example: see Android Auto with a VPN.
How unbraid handles it
- Setup. After your first connect, unbraid shows how to turn on both settings and checks them when you come back. While unbraid is connected, Settings, VPN behaviour shows what Android has set, with a button to Open Android VPN settings.
- Direct apps keep working. Apps you set to Direct use your normal connection. With blocking on, Android would cut them off, so unbraid carries them itself: they pass through unbraid and leave over your normal connection, without a VPN exit. They’re IPv4 only while that’s the case.
- Pausing. With blocking on, pausing unbraid takes every app offline, Direct apps included. unbraid tells you when you pause.
- Block in unbraid is separate. Block in Apps keeps a chosen app offline while unbraid is connected. In Websites, Block refuses an address and its subdomains in apps whose lookups pass through unbraid. Neither replaces Android’s Block connections without VPN.
- A route that fails. If a route can’t get its tunnel, its apps lose internet access while the other routes keep running. They don’t fall back to your normal connection. Local network and home access you’ve set up can still work.
To keep some apps off the VPN, see how to use a VPN for only one app and the split tunneling guide.
Questions
Should I turn on Block connections without VPN? Turn it on if you don’t want apps to go online while the VPN isn’t running. Leave it off if you often use Wi-Fi with sign-in pages, or if you’d rather have a working phone than none when the VPN can’t connect. It doesn’t choose a VPN exit for each app: in unbraid, put apps on a VPN route for that.
Is Block connections without VPN the same as a kill switch? Yes. It’s Android’s own kill switch, enforced by the system instead of by the VPN app.
Can two VPN apps be Always-on? Not in the same profile. Android runs one VPN per profile, and only that one can be Always-on. Why Android runs only one VPN at a time explains the ways around it.
Bring your own VPN
unbraid is a VPN client with no servers of its own. You sign in with an account you already have, or add your own server. It has built-in support for AirVPN, ExpressVPN, IVPN, Mullvad, NordVPN (affiliate link), Private Internet Access, Proton VPN (Free included), Surfshark (affiliate link) and Windscribe. For CyberGhost, you import config files from your account, with step-by-step help in the app.
We earn a commission if you subscribe through a link marked (affiliate link). It helps keep unbraid free. If you're about to subscribe to a VPN service, thank you for considering doing it through one of them.