From 8f3aa227a2f444d02f6b02cdb5ec1b764ce0f206 Mon Sep 17 00:00:00 2001 From: Josue-T Date: Tue, 27 May 2014 21:49:20 +0200 Subject: [PATCH] Update firewall.py Pour accepter les connexion FTP --- firewall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firewall.py b/firewall.py index a944836eb..eb1194e11 100644 --- a/firewall.py +++ b/firewall.py @@ -161,7 +161,7 @@ def firewall_reload(): os.system("iptables -F") os.system("iptables -X") - os.system("iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT") + os.system("iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT") if 22 not in firewall['ipv4']['TCP']: firewall_allow(22) @@ -182,7 +182,7 @@ def firewall_reload(): os.system("ip6tables -P INPUT ACCEPT") os.system("ip6tables -F") os.system("ip6tables -X") - os.system("ip6tables -A INPUT -m state --state ESTABLISHED -j ACCEPT") + os.system("ip6tables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT") if 22 not in firewall['ipv6']['TCP']: firewall_allow(22, ipv6=True)