qdm12 / gluetun-wiki

Home to the Markdown Wiki page for Gluetun
MIT License
346 stars 40 forks source link

ERROR [vpn] redirecting port in firewall: redirecting port: redirecting IPv6 source port #72

Open kevinbeared opened 4 months ago

kevinbeared commented 4 months ago

URL to the Wiki page

https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers/protonvpn.md

What's missing?

Hi guys,

Spent an awful lot of time searching to resolve this error.

2024-05-1615:24:40+02:00 ERROR [vpn] redirecting port in firewall: redirecting port: redirecting IPv6 source port 41874 to destination port 51413 on interface tunO: command failed: "ipotables-legacy -t nat --append PREROUTING -i tuno -d :: 1 -p tcp -- dport 41874 -j REDIRECT --to-ports 51413": ip6tables v1.8.10 (legacy): can't initialize potables table 'nat': Table does not exist (do you need to insmod?)

Everything is set up correctly, added +pmp to my username, PORT_FORWARDED on, with protonvpn and country=netherlands with PAID_ONLY=on.

Can't find a way around this. My transmission container doesn't have the peer so i'm downloading at 50ko/s... so for 4K torrent you should not be in a hurry !

Tried everything but couldn't make it work.

DS224+ up to date with gluetun container, and transmission with network_mode = contrainer-vpn

markcagatandavis commented 2 months ago

EDIT: Happy to provide whatever information needed :) Hey,

I am having the exact same issue on both OpenVPN and Wireguard with Proton VPN.

DS920+ Synology NAS | Latest Update 5 Firmware

I have tested multiple times and it seems to only happen when I have PORT_FORWARDED=ON and specify a port VPN_PORT_FORWARDING_LISTENING_PORT=51765

qdm12 commented 2 months ago

Workaround: just leave VPN_PORT_FORWARDING_LISTENING_PORT blank and use whatever port you get assigned in Transmission.

Otherwise, would this help: https://stackoverflow.com/a/22876662

sudo modprobe ip_tables
sudo echo 'ip_tables' >> /etc/modules

EDIT: doing an exception for you two guys this one time, but please in the future open an issue on the Gluetun repository since this not about the Gluetun wiki documentation....