Is this urgent?
Yes
Host OS
Docker
CPU arch
None
VPN service provider
ProtonVPN
What are you using to run the container
docker-compose
What is the version of Gluetun
Running version latest built on 2026-07-19T14:13:11.572Z (commit 78f6076) on Linux 7.0.0-28-generic (x86_64)
What's the problem 🤔
An error occurs when gluetun try to contact ProtonVPN to take a new Port.
Share your logs (at least 10 lines)
ERROR [port forwarding] refreshing port mapping for internal port 51332 and external port 51332: adding TCP port mapping: executing remote procedure call: reading from udp connection: read udp 10.2.0.2:56502->10.2.0.1:5351: recvfrom: connection refused
gluetun | 2026-07-28T10:30:20+02:00 INFO [port forwarding] starting
gluetun | 2026-07-28T10:30:20+02:00 ERROR [port forwarding] starting port forwarding service: port forwarding for the first time: getting external IPv4 address: executing remote procedure call: reading from udp connection: read udp 10.2.0.2:57320->10.2.0.1:5351: recvfrom: connection refused - make sure you have +pmp at the end of your OpenVPN username or that your Wireguard key is set to work with PMP - retrying in 5s
gluetun | 2026-07-28T10:30:25+02:00 INFO [port forwarding] starting
gluetun | 2026-07-28T10:30:25+02:00 ERROR [port forwarding] starting port forwarding service: port forwarding for the first time: getting external IPv4 address: executing remote procedure call: reading from udp connection: read udp 10.2.0.2:49662->10.2.0.1:5351: recvfrom: connection refused - make sure you have +pmp at the end of your OpenVPN username or that your Wireguard key is set to work with PMP - retrying in 5s
Share your configuration
gluetun:
image: qmcgaw/gluetun:latest
container_name: gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- TZ=Europe/Paris #CHANGE_TO_YOUR_TZ
- VPN_SERVICE_PROVIDER=protonvpn
- SERVER_COUNTRIES=Switzerland
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=XXXX=
- VPN_PORT_FORWARDING_UP_COMMAND=/bin/sh -c 'wget -O- --retry-connrefused --post-data "json={\"listen_port\":{{PORT}}}" http://127.0.0.1:8080/api/v2/app/setPreferences 2>&1'
- PORT_FORWARD_ONLY=on
- VPN_PORT_FORWARDING=on
volumes:
- ./gluetun:/gluetun
ports:
- "8080:8080" # WebUI qBittorrent
- "8989:8989" # Sonarr
- "7878:7878" # Radarr
- "8686:8686" # Lidarr
- "9696:9696" # Prowlarr
- "5000:5000" #SonoBarr"
- "2468:2468"
restart: unless-stopped
Is this urgent?
Yes
Host OS
Docker
CPU arch
None
VPN service provider
ProtonVPN
What are you using to run the container
docker-compose
What is the version of Gluetun
Running version latest built on 2026-07-19T14:13:11.572Z (commit 78f6076) on Linux 7.0.0-28-generic (x86_64)
What's the problem 🤔
An error occurs when gluetun try to contact ProtonVPN to take a new Port.
Share your logs (at least 10 lines)
Share your configuration