Repository navigation
Mullvad VPN Settings #3522
|
I cannot seem to get gluetun to work with mullvad as my vpn service provider. Any help would be much appreciated. Here is the the service in my YAML file: When I run EDIT: Explicitly setting |
Replies: 1 comment 2 replies
|
Glad Why the error happened. The value Also note Mullvad dropped port forwarding in 2023, so it has to stay off with Mullvad anyway, and the There's a typo that will be the next error: gluetun:
image: qmcgaw/gluetun:latest
container_name: gluetun
env_file:
- .env
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- TZ=${TZ}
- VPN_SERVICE_PROVIDER=mullvad
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=${WIREGUARD_PRIVATE_KEY}
- WIREGUARD_ADDRESSES=${WIREGUARD_ADDRESSES}
ports:
- 8888:8888
restart: unless-stoppedTo check that traffic goes through Mullvad once it's up: docker exec gluetun wget -qO- https://am.i.mullvad.net/json
Docs: Mullvad setup, port forwarding. |
Glad
VPN_PORT_FORWARDING=falsegot you past it. Two things worth knowing so it doesn't bite again:Why the error happened. The value
51820didn't come from theenvironment:block, it came from your.env(loaded viaenv_file:). Most likely there's a line likeVPN_PORT_FORWARDING=51820in it, probably meant as the WireGuard port.VPN_PORT_FORWARDINGis an on/off switch, not a port. If you want to pin the WireGuard endpoint port, the variable isWIREGUARD_ENDPOINT_PORT=51820, but with Mullvad you normally don't need it at all. Removing that line from.envfixes it at the source, so you don't need the override.Also note Mullvad dropped port forwarding in 2023, so it has to stay off with Mull…