# Obscura's VPN Kill Switch

> An overview of Obscura's VPN kill switch

Canonical URL: https://obscura.com/knowledge/kill-switch/

## What is a Kill Switch?

A VPN kill switch is a security feature that **protects your real IP address** from leaking. If the VPN tunnel stops unexpectedly, the kill switch **blocks all internet traffic** until the VPN tunnel automatically reconnects. This prevents the device from falling back to a connection not protected by the VPN.

## Enabling the Kill Switch

### iOS and macOS

1. Open the Obscura app

2. Disconnect your VPN connection

3. Navigate to the **settings** tab in the app

4. Open **Experimental** and enable **On demand kill switch**

### Android

1. Open the Settings App

2. Search for **“VPN”**

3. Click the **Gear icon** next to Obscura VPN

4. Enable `Always-on VPN`

5. Enable `Block connections without VPN`

> **Note**
>
> On Linux, the kill switch is **always enabled** and does **not currently have a toggle**.

## How it Works

### iOS and macOS

The kill switch activates an [on-demand rule](https://developer.apple.com/documentation/networkextension/vpn-on-demand-rules) that **automatically restarts the VPN** if it crashes. While the VPN is restarting, **all device traffic is blocked**, preventing your location from leaking.

### Android

If you enable [Always-on VPN](https://developer.android.com/develop/connectivity/vpn#always-on) in Android settings, your device starts Obscura at boot and **automatically reconnects** if the connection drops. The [Block connections without VPN](https://support.google.com/work/android/answer/9213914?hl=en#zippy=%2Cblock-non-vpn-connections:~:text=Block%20non%2DVPN%20connections) setting **blocks traffic that doesn’t go through the VPN**, preventing disconnects from leaking your real IP.

### Linux

The Obscura service installs [nftables](https://wiki.nftables.org) firewall rules that **drop all traffic except Obscura and allowed traffic** togglable in the app (LAN, Tailscale & WireGuard). The kill switch **stays active even if the Obscura service crashes**.

## Platform Quirks

### iOS

When using multiple VPN apps on iOS, **activating a VPN will turn off all other VPNs** on the device and override the kill switch.

When this happens, Obscura will send you a notification, allowing you to re-enable your VPN connection.

*This is because of an iOS platform limitation where only one VPN can be connected at a time.*

### macOS

If you have the kill switch on, we **always recommend you connect and disconnect through the app**. If you encounter a bug that makes that impossible, follow these steps.

1. Open **System Settings**

2. In the sidebar, select **VPN** & click the **(i)** button next to Obscura VPN ![Main VPN page in MacOS settings](/a/vpn-page-enabled.BQH4MQ_9_PjJmY.webp)

3. Ensure that **Connect on demand** is disabled ![Connect on demand pop-up in VPN settings](/a/connect-on-demand.vOg8_jy4_dTgAS.webp)

4. Return to the VPN page and disable the VPN ![Arrow pointing to disconnected vpn toggle](/a/vpn-page-disabled.p2GuIvyk_p9JcL.webp)
