|
|
|
@ -308,7 +308,7 @@ class iptables:
|
|
|
|
|
add_general_rule(ports, ip_type, chain, subtable, subnet, 'tcp', 'src')
|
|
|
|
|
if 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"]:
|
|
|
|
|
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')
|
|
|
|
|