You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
would it be an idea to add some IPtables rules so we can protect the container?
i have disabled NAT firewall on giganews to be connectable - but that also exposes my whole container on the public internet including an open unprotected transmission webinterface :-)
Could be a few simple rules on the tap interfaces, with configurable port range?
like:
iptables -F
iptables -A INPUT -i tun+ -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i tun+ -p tcp --dport 6881:6999 -j ACCEPT
iptables -A INPUT -i tun+ -p udp --dport 6881:6999 -j ACCEPT
iptables -A INPUT -i tun+ -j DROP
@pkishino
that sounds great, I guess you can get the "peer-port" as --dport param, or if the "peer-port-random-on-start" is true put in "peer-port-random-low":"peer-port-random-high" from the transmission settings.json
i'm manually using these rules now on the container, and works as expected :-)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi,
would it be an idea to add some IPtables rules so we can protect the container?
i have disabled NAT firewall on giganews to be connectable - but that also exposes my whole container on the public internet including an open unprotected transmission webinterface :-)
Could be a few simple rules on the tap interfaces, with configurable port range?
like:
iptables -F
iptables -A INPUT -i tun+ -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i tun+ -p tcp --dport 6881:6999 -j ACCEPT
iptables -A INPUT -i tun+ -p udp --dport 6881:6999 -j ACCEPT
iptables -A INPUT -i tun+ -j DROP
All reactions