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.
Open a terminal window.
Check if you already have a key pair.
mullvad tunnel wireguard key check
This command will generate a new key pair but will not return any information.
mullvad tunnel wireguard key generate
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.
This command enables WireGuard.
mullvad relay set tunnel wireguard any
Once you run this command, you can use the app just as you normally would.
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.
This terminal command will disconnect you from WireGuard.
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.
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.