We'll walk you through our easy browser-based configuration setup and the necessary terminal-based commands to use the WireGuard protocol with Mullvad on Linux.
We also have an advanced terminal-only setup guide.
sudo add-apt-repository ppa:wireguard/wireguard && sudo apt-get update && sudo apt-get install openresolv curl linux-headers-$(uname -r) wireguard-dkms wireguard-tools
For non-Debian based distributions, follow the official installation instructions.
If you're running WireGuard on multiple devices, generate a separate key pair for each device. You will otherwise likely run into connectivity issues.
Save the downloaded file in your local directory and then copy it to
Also make sure you set the correct permissions so only root can read them:
sudo chown root:root -R /etc/wireguard/*.conf && sudo chmod 600 -R /etc/wireguard/*.conf
For this guide, we have selected Malmö, Sweden (se4), as our first server location. The downloaded config file is named mullvad-se4-wireguard.conf.
Run the following command but replace
se4 with your selected location's alias.
wg-quick up mullvad-se4
As before, replace
se4 with your selection.
wg-quick down mullvad-se4
To verify that WireGuard is working, use our online tool Am I Mullvad to check your IP.
When using our config generator in step two, you have the option of selecting a second server location. Doing so allows your traffic to "hop" from the first location to the second before exiting at your destination.
Multihop can be used for many different reasons, for example, increasing your privacy or improving latency/performance due to suboptimal ISP peering.
Our SOCKS5 proxy guide includes steps for configuring your browser or other programs to multihop using our WireGuard SOCKS5 proxies.
Using this together with the multihop option in step 2 of this guide will give you an additional hop for a total of three.
If you run into any issues while using WireGuard, please contact us at firstname.lastname@example.org and let us know what you experience.
Due to a Debian bug, Debian/Ubuntu users may want to install openresolv rather than Debian's broken resolvconf, in order to prevent DNS leaks.
Replace the 'DNS = ' line with
PostUp = systemd-resolve -i %i --set-dns=188.8.131.52 --set-domain=~.
Log in to your account page and add ports from there. Keep in mind that the ports will be forwarded to the latest pubkey that you have added.
Run the following command, replacing
mullvad-se4 with the WireGuard server you wish to use.
systemctl enable wg-quick@mullvad-se4
"WireGuard" is a registered trademark of Jason A. Donenfeld.