Is this urgent?
None
Host OS
Debian Bookworm
CPU arch
x86_64
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 2025-12-29T05:33:29.822Z (commit 9b9b723)
What's the problem 🤔
Hello,
I'm trying to get port forwarding running for the last few days.
I also stumbled upon a similar issue from quite some time ago (#2435).
I tried various environment settings and both Wireguard and OpenVPN.
I also went through the gluetun Wiki and tried a minimal settings set, see here:
#3077
Nevertheless, whatever I try, I'm unable to obtain a forwarded port.
I also sent a mail to Proton Support (no reply yet).
Share your logs (at least 10 lines)
2026-01-05T17:43:50+01:00 INFO [routing] default route found: interface eth0, gateway 172.30.0.1, assigned IP 172.30.0.2 and family v4
2026-01-05T17:43:50+01:00 INFO [routing] adding route for 0.0.0.0/0
2026-01-05T17:43:50+01:00 INFO [firewall] setting allowed subnets...
2026-01-05T17:43:50+01:00 INFO [routing] default route found: interface eth0, gateway 172.30.0.1, assigned IP 172.30.0.2 and family v4
2026-01-05T17:43:50+01:00 INFO [routing] adding route for 192.168.178.0/24
2026-01-05T17:43:50+01:00 INFO [routing] adding route for 172.16.0.0/12
2026-01-05T17:43:50+01:00 INFO [routing] adding route for 10.0.0.0/8
2026-01-05T17:43:50+01:00 INFO [dns] using plaintext DNS at address 1.1.1.1
2026-01-05T17:43:50+01:00 INFO [healthcheck] listening on 127.0.0.1:9999
2026-01-05T17:43:50+01:00 INFO [http server] read 6 roles from authentication file
2026-01-05T17:43:50+01:00 INFO [http server] http server listening on [::]:8000
2026-01-05T17:43:50+01:00 INFO [firewall] allowing VPN connection...
2026-01-05T17:43:50+01:00 INFO [openvpn] OpenVPN 2.6.16 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
2026-01-05T17:43:50+01:00 INFO [openvpn] library versions: OpenSSL 3.5.4 30 Sep 2025, LZO 2.10
2026-01-05T17:43:50+01:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]89.222.96.216:1194
2026-01-05T17:43:50+01:00 INFO [openvpn] UDPv4 link local: (not bound)
2026-01-05T17:43:50+01:00 INFO [openvpn] UDPv4 link remote: [AF_INET]89.222.96.216:1194
2026-01-05T17:43:50+01:00 INFO [openvpn] [node-ch-38.protonvpn.net] Peer Connection Initiated with [AF_INET]89.222.96.216:1194
2026-01-05T17:43:51+01:00 INFO [openvpn] setsockopt TCP_NODELAY=1 failed
2026-01-05T17:43:51+01:00 INFO [openvpn] TUN/TAP device tun0 opened
2026-01-05T17:43:51+01:00 INFO [openvpn] /sbin/ip link set dev tun0 up mtu 1500
2026-01-05T17:43:51+01:00 INFO [openvpn] /sbin/ip link set dev tun0 up
2026-01-05T17:43:51+01:00 INFO [openvpn] /sbin/ip addr add dev tun0 10.16.0.48/16 broadcast +
2026-01-05T17:43:51+01:00 INFO [openvpn] UID set to nonrootuser
2026-01-05T17:43:51+01:00 INFO [openvpn] Initialization Sequence Completed
2026-01-05T17:43:56+01:00 INFO [dns] downloading hostnames and IP block lists
2026-01-05T17:43:57+01:00 INFO [dns] DNS server listening on [::]:53
2026-01-05T17:43:58+01:00 INFO [dns] ready
2026-01-05T17:43:59+01:00 INFO [ip getter] Public IP address is 212.104.214.172 (Switzerland, Zurich, Zürich - source: ipinfo+ifconfig.co+ip2location+cloudflare)
2026-01-05T17:43:59+01:00 INFO [vpn] You are running on the bleeding edge of latest!
2026-01-05T17:43:59+01:00 INFO [port forwarding] starting
2026-01-05T17:44:22+01:00 INFO [openvpn] read UDPv4 [EMSGSIZE Path-MTU=1492]: Message too large (fd=3,code=90)
2026-01-05T17:44:22+01:00 INFO [openvpn] write UDPv4 [EMSGSIZE Path-MTU=1492]: Message too large (fd=3,code=90)
2026-01-05T17:44:23+01:00 INFO [openvpn] read UDPv4 [EMSGSIZE Path-MTU=1492]: Message too large (fd=3,code=90)
2026-01-05T17:45:24+01:00 INFO [http server] 200 GET /v1/publicip/ip wrote 210B to 172.30.0.1:40036 in 67.391µs
2026-01-05T17:46:06+01:00 ERROR [vpn] starting port forwarding service: port forwarding for the first time: getting external IPv4 address: executing remote procedure call: connection timeout: failed attempts: read udp 172.30.0.2:59948->10.16.0.1:5351: i/o timeout (tries 1, 2, 3, 4, 5, 6, 7, 8, 9)
Share your configuration
Wireguard:
environment:
- VPN_SERVICE_PROVIDER=protonvpn
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=xxx
- SERVER_COUNTRIES=Switzerland
- PORT_FORWARD_ONLY=on
- VPN_PORT_FORWARDING=on
- TZ=Europe/Berlin
- FIREWALL_OUTBOUND_SUBNETS=192.168.178.0/24,172.16.0.0/12,10.0.0.0/8
OpenVPN:
environment:
- VPN_SERVICE_PROVIDER=protonvpn
- VPN_TYPE=openvpn
- OPENVPN_USER=xxxxxxx+pmp
- OPENVPN_PASSWORD=xxxxxxxx
- SERVER_COUNTRIES=Switzerland
- PORT_FORWARD_ONLY=on
- VPN_PORT_FORWARDING=on
- TZ=Europe/Berlin
- FIREWALL_OUTBOUND_SUBNETS=192.168.178.0/24,172.16.0.0/12,10.0.0.0/8
Is this urgent?
None
Host OS
Debian Bookworm
CPU arch
x86_64
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 2025-12-29T05:33:29.822Z (commit 9b9b723)
What's the problem 🤔
Hello,
I'm trying to get port forwarding running for the last few days.
I also stumbled upon a similar issue from quite some time ago (#2435).
I tried various environment settings and both Wireguard and OpenVPN.
I also went through the gluetun Wiki and tried a minimal settings set, see here:
#3077
Nevertheless, whatever I try, I'm unable to obtain a forwarded port.
I also sent a mail to Proton Support (no reply yet).
Share your logs (at least 10 lines)
Share your configuration