bundles/transmission: also allow tcp peer-port
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-01-08 17:06:26 +01:00
parent 33b85ff0de
commit 19dd29e847
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -43,6 +43,9 @@ def iptables(metadata):
iptables.append('iptables_both -A INPUT -p udp --dport {} -j ACCEPT'.format( iptables.append('iptables_both -A INPUT -p udp --dport {} -j ACCEPT'.format(
metadata.get('transmission/config/peer-port'), metadata.get('transmission/config/peer-port'),
)) ))
iptables.append('iptables_both -A INPUT -p tcp --dport {} -j ACCEPT'.format(
metadata.get('transmission/config/peer-port'),
))
for iface in sorted(interfaces): for iface in sorted(interfaces):
iptables.append('iptables_both -A INPUT -i {} -p tcp --dport {} -j ACCEPT'.format( iptables.append('iptables_both -A INPUT -i {} -p tcp --dport {} -j ACCEPT'.format(