From eb265396b3477f23b492ccd4db74a82630f7d2c5 Mon Sep 17 00:00:00 2001 From: Alexis Gavoty Date: Thu, 26 Dec 2013 17:41:15 +0100 Subject: [PATCH] Update yunohost_firewall.py --- yunohost_firewall.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yunohost_firewall.py b/yunohost_firewall.py index 1e9844e0..13413111 100644 --- a/yunohost_firewall.py +++ b/yunohost_firewall.py @@ -137,10 +137,14 @@ def firewall_reload(upnp=False): add_portmapping('TCP', upnp, False, 'r') add_portmapping('UDP', upnp, False, 'r') + ipv6 = False if os.path.exists("/proc/net/if_inet6"): add_portmapping('TCP', upnp, True, 'r') add_portmapping('UDP', upnp, True, 'r') + ipv6 = True + + hook_callback('post_iptable_rules', [upnp, ipv6]) os.system("iptables -A INPUT -i lo -j ACCEPT") os.system("iptables -A INPUT -p icmp -j ACCEPT")