Replies: 2 comments
-
|
I don't know how much help this will be but did you set the program to tun0 itself as the only usable interface? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I had odd problems, but in the options in web UI did you do this?
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Environment
Host OS: UGOS Pro (Ugreen DXP4800 Plus NAS)
Docker: Running via Portainer
Gluetun version: v3.41.0
VPN provider: AirVPN
VPN type: WireGuard
qBittorrent image: lscr.io/linuxserver/qbittorrent:libtorrentv1
Network mode:
network_mode: "service:gluetun"Problem
All torrents immediately show "Errored" status in qBittorrent with 0 peers and 0 seeds. Trackers show "Not contacted yet" and never progress.
What we've confirmed works
Root cause identified
The policy routing rules show traffic from 172.21.0.2 (the container's eth0 IP) is being caught by rule 100 and routed through eth0 (table 200) instead of tun0 (table 51820):
Rule 100 catches all traffic originating from
172.21.0.2and routes it through eth0 via table 200, bypassing the VPN tunnel entirely. Rule 101 (which should route unmarked traffic through tun0) never gets reached for qBittorrent's connections.The mangle table is completely empty — no packet marking rules exist:
What we've tried
FIREWALL_VPN_INPUT_PORTS=<redacted>— configured correctlyFIREWALL_OUTBOUND_SUBNETS=172.21.0.0/16— added, created rule 99 but didn't resolve routing issueFIREWALL_OUTBOUND_SUBNETS=0.0.0.0/0— rejected by Gluetun v3.41.0 with error "outbound subnet has an unspecified address"VPN_INTERFACE=tun0— no effect on routing tablesysctls: net.ipv4.conf.all.rp_filter=2— no effectip rule add from 172.21.0.2 lookup 51820 priority 99— routes traffic through VPN but breaks WebUI access since all traffic including WebUI goes through tun0Docker Compose
Question
Is rule 100 (
from 172.21.0.2 lookup 200) expected behavior when usingnetwork_mode: "service:gluetun"? It appears to intercept all outbound traffic from containers sharing Gluetun's network namespace before rule 101 can route it through tun0. Is there a supported configuration option to fix this, or is this a bug specific to certain Docker network configurations?Beta Was this translation helpful? Give feedback.
All reactions