From bfabbf59544b1c2069e962e58982b29c9b84332d Mon Sep 17 00:00:00 2001 From: abeudin Date: Wed, 10 Apr 2013 16:56:55 +0300 Subject: [PATCH] Update yunohost_firewall.py --- yunohost_firewall.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/yunohost_firewall.py b/yunohost_firewall.py index 047169f3..19ccdfae 100644 --- a/yunohost_firewall.py +++ b/yunohost_firewall.py @@ -128,6 +128,11 @@ def firewall_reload(upnp=False): add_portmapping('TCP', upnp, True); add_portmapping('UDP', upnp, True); + os.system ("iptables -A INPUT -i lo -j ACCEPT") + os.system ("iptables -A INPUT -p icmp -j ACCEPT") + os.system ("ip6tables -A INPUT -i lo -j ACCEPT") + os.system ("ip6tables -A INPUT -p icmp -j ACCEPT") + os.system ("iptables -P INPUT DROP") os.system ("ip6tables -P INPUT DROP") os.system("service fail2ban restart")