Kill switch
What the kill switch is, how it stops traffic from leaking when the VPN drops unexpectedly, how it works and how to turn it on on each platform, what happens after a crash or restart, and how to check that it works.
A kill switch stops your device from reaching the internet outside the tunnel when the VPN connection drops unexpectedly. That way your real IP address and unencrypted traffic stay hidden during a drop. In Colitu the kill switch works the way each operating system allows, so the protection differs a little by platform: Windows and Linux have Colitu's own kill switch that keeps blocking even if the app crashes, Android relies on Android's own settings, which you turn on yourself, and iOS has a Block internet without VPN switch that is off by default.
| Platform | How it works | Where to turn it on |
|---|---|---|
| Windows (2.6.0) | The ColituKillSwitch Windows service with persistent Windows Filtering Platform rules, on by default | Settings → Connection → Kill switch |
| Android (2.6.0) | Android's system settings Always-on VPN and Block connections without VPN; off until you turn them on | Account → Features → Always-on protection |
| iOS (5.5.0) | Block internet without VPN (iOS includeAllNetworks), off by default; Always-on protection reconnects the VPN | Account → Features |
| Linux (1.2.0) | nftables rules that stay in place if the app crashes; TUN mode recommended | Settings → Connection → Kill switch |
Linux headless / Raspberry Pi (colitud) | sing-box TUN with strict routing while connected | Part of the headless client |
Windows
On Windows the kill switch is on by default. To check or change it, use Settings → Connection → Kill switch.
- A separate service. Colitu installs a Windows service called ColituKillSwitch together with the app. It keeps persistent Windows Filtering Platform rules, the security layer built into Windows, so the protection no longer depends on the app staying alive. While the rules are active, only the VPN core, the Colitu app, loopback, the TUN adapter and DHCP can pass, and everything else is blocked. Traffic you put outside the VPN with Split tunneling is let out too.
- Local network. Access to your local network (LAN) is a setting and is on by default.
- If the app or the VPN core crashes, or after a crash or power loss, the internet stays blocked until Colitu reconnects. You are never left unprotected by a crash.
- Proxy mode too. The kill switch is also active in system proxy mode. That also means apps that do not use the proxy have no internet while you are connected. Use TUN mode if you want every app to work normally and be covered.
- A normal Windows shutdown or restart releases the block. This is deliberate, so that you cannot be locked out of the internet after a restart. The exception is when Auto-connect and Start with Windows are both on (see Auto-connect): then the block stays through the restart until Colitu has started and reconnected by itself.
- When the kill switch engages, the home screen tells you and Colitu reconnects automatically. If you don't want to wait, you can turn the kill switch off in the settings.
- When you press Disconnect yourself, the kill switch doesn't engage and the internet works normally.
- If the service is missing, the app falls back to the older in-app kill switch and warns you. The older one belongs to the app's process: if Colitu crashes or is closed by force, Windows removes its rules and traffic flows without protection.
- Uninstalling Colitu removes all the rules.
- Traffic the app routes directly by design, such as some regional sites on a built-in list (see Split tunneling), is not blocked.
Android
The Android app has no kill switch of its own; the protection comes from Android's system settings, and both are off until you turn them on. Colitu takes you to the right screen, and the Always-on protection row under Features shows whether it is on:
- In Colitu open the Account tab and tap Always-on protection under Features. Android's VPN settings open.
- Tap the settings (gear) icon next to Colitu.
- Turn on Always-on VPN.
- Turn on Block connections without VPN.
From then on no app can reach the internet while Colitu isn't connected. The names and location of these settings can differ slightly between manufacturers; on most phones they are under Settings → Network & internet → VPN. Only one VPN app can be "always on" at a time.
Switching servers does not leak. While you switch servers, the VPN interface stays up, so nothing goes out outside the tunnel. We measured 0 leaked requests, with traffic blocked for about 1.5 seconds during the switch.
If you use Split tunneling with Block connections without VPN on, apps you excluded lose internet access, while excluded sites keep working.
iOS
iOS has two separate switches under Account → Features:
- Block internet without VPN
is the kill switch. It is off by default. While it is on, nothing leaves the phone outside the VPN, not even while the VPN reconnects. It uses iOS's
includeAllNetworkssetting. Because of that, Wi-Fi sign-in pages (hotels, airports) cannot open while the VPN is on; turn the VPN off to sign in, then connect again. - Always-on protection
is unchanged: iOS brings the VPN back right away if it drops because the network changed or it was switched off in Control Centre. It only reconnects; it does not block traffic in the meantime.
IPv6 no longer leaks on iOS. Local networks are kept outside the tunnel so you can reach your local devices.
Linux
On Linux the kill switch uses nftables rules:
- Under Settings → Connection → Mode choose All traffic (TUN). TUN mode is the recommended mode; in proxy mode the app shows a warning, because proxy mode does not cover all traffic.
- In the same section make sure Kill switch is on.
- Make sure the
nftablespackage is installed.
While the kill switch is active and the VPN drops, only the local network, the VPN servers and the Colitu account service stay reachable. Traffic you put outside the VPN with Split tunneling is let through; if the VPN drops, only the IP addresses on your list stay reachable.
- The rules stay if the app crashes
(the protection fails closed). On the next start the app offers Reconnect or Turn off protection.
- To remove the rules by hand,
run
colitu-vpn --colitu-cleanup. Removing the Colitu package also removes them, and a reboot clears them. - Headless Linux and Raspberry Pi
(
colitud): while connected, a sing-box TUN with strict routing keeps traffic from leaving outside the tunnel.
Warm spare and server changes
When Warm spare is on, the second path can lead to another server, and the kill switch allows it:
- Windows: ColituKillSwitch allows the spare server too.
- Linux: the spare server is added to the allow-list.
- With the kill switch on, the automatic retry moves down the server list instead of repeating the same server (How Colitu Adaptive Connect works).
So traffic does not leave the tunnel during a server change.
How do I check that it works?
- Connect to Colitu and open the VPN connection test. The IP address and location should show the Colitu server and no leak should appear.
- While connected, turn Wi-Fi or mobile data off for a few seconds and on again.
- Pages should not load until Colitu has reconnected. Once it's back, run the test again; it should show the Colitu server again.
- On Android, also disconnect in Colitu: with Block connections without VPN on, no site should open. On iOS the same applies with Block internet without VPN on.
More tests: Connection tests.
Troubleshooting
| Symptom | Fix |
|---|---|
| I have no internet on Windows after Colitu crashed or the power went out | That is the kill switch doing its job. Start Colitu and let it reconnect, or turn the kill switch off under Settings → Connection → Kill switch. |
| I closed the window on Windows and have no internet | Colitu may keep running in the tray after you close the window, and the kill switch may be waiting for a reconnect. Open Colitu from the tray icon and reconnect, or disconnect. |
| Windows warns that the kill switch service is missing | The app is using the older in-app kill switch, which doesn't survive a crash. Reinstall Colitu so that the ColituKillSwitch service is installed again. |
| An app can't reach the internet on Windows in proxy mode | The kill switch is active in proxy mode and blocks apps that don't use the proxy. Switch to TUN mode, or add the app to Split tunneling. |
| No internet on Android while Colitu is off | That is exactly what Block connections without VPN does. Connect with Colitu or turn this setting off in Android's VPN settings. |
| I want to use another VPN on Android | First turn off Always-on VPN for Colitu. |
| Wi-Fi sign-in page won't open on iOS | Block internet without VPN is on. Turn the VPN off, sign in to the Wi-Fi, then connect again. |
| No internet on Linux after Colitu closed or crashed | The rules are kept on purpose. Open Colitu again and choose Reconnect or Turn off protection, or run colitu-vpn --colitu-cleanup. A reboot also clears them. |
| The kill switch doesn't work on Linux | Make sure you are in TUN mode and the nftables package is installed. |
| The kill switch engages often | Your connection drops often. See Connection problems. |
Still need help?
Colitu Bot answers in seconds, and our support team helps in three languages.
