WireGuard in the Mullvad app
This CLI-based guide is for macOS and Linux users who want to connect our WireGuard servers in Mullvad VPN app.
Support for Windows will be added as soon as WireGuard's official release for Windows is available.
- macOS or Linux
- version 2019.2 or newer of the Mullvad VPN app – download it here
- to use the terminal.
1. Open the terminal
Open the terminal and navigate to /Applications/Mullvad VPN.app/Contents/Resources
Open the terminal.
2. Do you have a key pair?
Check if you already have a key pair.
./mullvad tunnel wireguard key check
mullvad tunnel wireguard key check
If not, generate one (this command will not return any information).
./mullvad tunnel wireguard key generate
mullvad tunnel wireguard key generate
3. New key pair? Wait.
If you generated a new key pair, you may need to wait up to two minutes before it starts working. If the Mullvad app fails to connect in the following steps, you still need to wait.
4. Turn on WireGuard
This command enables WireGuard.
./mullvad relay set tunnel wireguard any
mullvad relay set tunnel wireguard any
Once you run this command, you can use the app just as you normally would.
5. Use WireGuard in the app
Launch the app. In the location menu, choose any available country, city, or server. The locations that don't have WireGuard servers will be greyed out and unavailable for selection.
WireGuard will remain activated even if you quit the app and close the terminal.
6. Turn off WireGuard
This terminal command will disconnect you from WireGuard.
./mullvad relay set tunnel openvpn any
mullvad relay set tunnel openvpn any
If you're connected to the app when you turn off WireGuard, notice that the app will automatically reconnect in order to implement this new configuration.
I get "BLOCKED CONNECTION" when I launch the app.
Simply choose another location. This just means that when you previously used the app, before turning on WireGuard, you were connected to a location that doesn't have a WireGuard server.