diff --git a/gestion/gen_confs/firewall.py b/gestion/gen_confs/firewall.py index 029770f6..29cc14b9 100644 --- a/gestion/gen_confs/firewall.py +++ b/gestion/gen_confs/firewall.py @@ -1118,6 +1118,12 @@ class firewall_zamok(firewall_crans) : """Fondamentalement, bloque l'accès internet sur zamok aux adhérents sanctionnés""" iptables("-F OUTPUT") + + # Règles OUTPUT de nat_table() à remettre en place + iptables("-t filter -A OUTPUT -o lo -j ACCEPT") + iptables("-t filter -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT") + iptables("-t filter -A OUTPUT -o %s -j SERV_OUT_ADM" % self.eth_adm) + self.filter_table() blacklist_sanctions = ('upload', 'warez', 'p2p', 'autodisc_p2p', 'autodisc_upload', 'bloq')