Connect to Mullvad’s servers via Wireguard
Updated on August 1st 2026.
I followed this tutorial:
https://mullvad.net/en/help/wireguard-and-mullvad-vpn
These are the commands I ran to set up a connection to Mullvad’s servers using Wireguard:
$ mkdir mullvad_config
$ cd mullvad_config/
$ curl -o mullvad-wg.sh https://raw.githubusercontent.com/mullvad/mullvad-wg.sh/main/mullvad-wg.sh
$ curl -o mullvad-wg.sh.asc https://raw.githubusercontent.com/mullvad/mullvad-wg.sh/main/mullvad-wg.sh.asc
$ curl -o mullvad-code-signing.asc https://mullvad.net/media/mullvad-code-signing.asc
$ gpg --verify mullvad-wg.sh.asc
$ chmod +x ./mullvad-wg.sh && ./mullvad-wg.sh
$ sudo -i \ can't switch to root account via 'su --login' because there is not password setup for the root account on GNU/Linux Trisquel
# cd /etc/wireguard/
# wg-quick up de-ber-wg-004
# curl https://am.i.mullvad.net/connected
Terminal should print ’You are connected to Mullvad […]“.
For Wireguard to connect to Mullvad’s server at system’s start run:
# systemctl enable wg-quick@de-ber-wg-004
To check whether my machine is connected to Mullvad’s server I can also run:
$ sudo wg
Can no longer connect to Mullvad
Late July 2026, the machine was no longer able to connect to Mullvad server via WireGuard.
Troubleshoot: I deleted Mullvad’s device key via Mullvad’s website interface and setted it up again locally following the above instructions.
personal computing command-line interface (cli) gnu linux trisquel shell literacy wiki wireguard