Mullvad Wireguard config with custom DNS
All credit to Michael Schnerring's guide.
- Make sure you have < 5 Wireguard keys.
- Install the official Wireguard client locally.
- Create a new config. This generates a public/private key pair.
- Run:
curl -sSL https://api.mullvad.net/app/v1/wireguard-keys \
-H "Content-Type: application/json" \
-H "Authorization: Token YOURMULLVADACCOUNTNUMBER" \
-d '{"pubkey":"YOURWIREGUARDPUBLICKEY"}'
- Get the public key and IPv4 address of your desired exit server from Servers | Mullvad VPN
- Complete your config as follows: