This commit is contained in:
Gabriel Detraz 2020-08-31 14:37:05 +02:00 committed by root
parent 4b3f9afce5
commit 6437f6191e

View file

@ -308,7 +308,7 @@ class iptables:
add_general_rule(ports, ip_type, chain, subtable, subnet, 'tcp', 'src') add_general_rule(ports, ip_type, chain, subtable, subnet, 'tcp', 'src')
if subnet["ouverture_ports"]["udp_ports_in"]: if subnet["ouverture_ports"]["udp_ports_in"]:
ports = ','.join(rule["show_port"] for rule in subnet["ouverture_ports"]["udp_ports_in"]) ports = ','.join(rule["show_port"] for rule in subnet["ouverture_ports"]["udp_ports_in"])
add_general_rule(ports, ip_type, chain, subtable, subnt, 'udp', 'dst') add_general_rule(ports, ip_type, chain, subtable, subnet, 'udp', 'dst')
if subnet["ouverture_ports"]["udp_ports_out"]: if subnet["ouverture_ports"]["udp_ports_out"]:
ports = ','.join(rule["show_port"] for rule in subnet["ouverture_ports"]["udp_ports_out"]) ports = ','.join(rule["show_port"] for rule in subnet["ouverture_ports"]["udp_ports_out"])
add_general_rule(ports, ip_type, chain, subtable, subnet, 'udp', 'src') add_general_rule(ports, ip_type, chain, subtable, subnet, 'udp', 'src')