Unofficial Mullvad.net client written in Python. Similiar to wg-quick, but with some additions to handle keys and relays via the Mullvad.net API.
- pyroute2
- requests
Copy mulvlad.py
to /usr/local/bin/
and the Systemd Unit files and Timer to /etc/systemd/system/
.
Place a config.py
file in /usr/local/etc/mulvlad/
looking the following:
ACCOUNT = '9999999999999999'
IFNAME = 'wg1-mull'
ALLOWED_IPS = ['0.0.0.0/0']
LOCATIONS = ['de-']
PREFER_OWNED = True
As this file contains the Mullvad.net account number, it's maybe a good idea to make this file chmod 600
with root as its owner.
Set everything up:
mulvlad.py start
Tear down:
mulvlad.py stop
Rotate keys:
mulvlad.py rotate
Or use the Systemd Units and Timer.
- handle IPv6