Walkthrough
How to set up a kill switch in IVPN or Mullvad on Linux
For permanent blocking of connections outside the VPN, use the firewall / kill switch always-on mode in IVPN on Linux: IVPN explicitly states that this option exists. In Mullvad, use the Linux application with its built-in advanced kill switch: the company states it is integrated with the system firewall and uses atomic operations. You will need a computer running Linux, administrator rights and an active account with the chosen service.
4-minute readLast reviewed From VPN Head-to-Head Comparisons
Which kill switch modes do IVPN and Mullvad offer on Linux?
The IVPN Linux application page states that the firewall / kill switch can be configured in either on-demand or always-on mode. For permanent blocking of traffic outside the tunnel, you need always-on. IVPN also claims protection against DNS leaks, IPv6 leaks and leaks when the connection drops.
Mullvad on its Linux download page describes an advanced kill switch: it is tightly integrated with the firewall and uses atomic operations. Atomicity means the rules are changed in full in a single step, without any intermediate state in which traffic could leak out.
| Reader situation | Application and protection option | Confirmed fact |
|---|---|---|
| Need permanent blocking of connections outside the VPN in IVPN | IVPN Linux application, always-on mode | Firewall / kill switch can be configured as on-demand or always-on |
| Need Mullvad protection on Linux | Mullvad Linux application, advanced kill switch | Integration with the firewall and atomic operations |
Both descriptions are written by the providers themselves; these are their claims about protection. There is no separate assessment of the usability of these applications here.
How to prepare IVPN and enable permanent protection?
- Install the base IVPN package for your distribution. IVPN warns that without it the GUI will not install.
- Install the separate package with the graphical application.
- Sign in to your account and open the firewall / kill switch settings.
- Choose always-on mode if traffic must never reach the internet outside the VPN under any circumstances.
On-demand mode is also available. IVPN does not explain exactly how it behaves in each state on this page. For the task of 'no traffic without a tunnel', rely on always-on.
How to install Mullvad so that you get its kill switch?
- Add the Mullvad repository following the official installation instructions.
- Install the application through the package manager of your distribution.
- Launch the application and sign in with your account number.
Mullvad recommends installing from its own repository specifically. Ubuntu, Debian and Fedora are officially supported; on other distributions the company does not test the application. The advanced kill switch is part of the application itself, and no separate package is needed for it.
How to check that the protection works, and what to do if it does not?
Connect to the VPN and open BrowserLeaks. It should show the IP address of the VPN server, not the address of your UK provider. Then arrange a controlled disconnection, for example briefly switch off Wi-Fi or unplug the cable while the tunnel is active. Until the application restores the connection, websites should not open over the normal connection. Check manual disconnection of the VPN separately, and compare the result against the intended purpose of the selected mode.
An example. A user in Manchester installed the Mullvad application on Arch Linux from a third-party package, and after the Wi-Fi dropped BrowserLeaks showed his provider's address. He switched the system to Fedora, installed Mullvad from the company's repository and repeated the disconnection. The provider's address did not appear again.
Common causes of problems are:
- on-demand has been selected instead of always-on in IVPN;
- the IVPN GUI has been installed without the base package;
- Mullvad is on a distribution the company does not test;
- the application was not installed from the Mullvad repository.
A separate example: manual configuration of CitadelVPN on Linux
Checklist
- IVPN: install the base package, then the GUI, and choose always-on.
- Mullvad: install the application from the repository on Ubuntu, Debian or Fedora.
- Check the IP address while connected and while the tunnel is down.
- Check manual disconnection separately.