From a0eb1ee0b126cb8440d790f59acf0bc4e9af4261 Mon Sep 17 00:00:00 2001 From: titoko Date: Sun, 14 Jul 2013 16:48:29 +0200 Subject: [PATCH] eth0 interfacace fix --- yunohost_firewall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yunohost_firewall.py b/yunohost_firewall.py index f4c0f55b..fe52a946 100644 --- a/yunohost_firewall.py +++ b/yunohost_firewall.py @@ -253,9 +253,9 @@ def add_portmapping(protocol=None, upnp=False, ipv6=None, mode=None,): for i, port in enumerate(firewall[ip][protocol]): if ipv6: - os.system("ip6tables -A INPUT -p " + protocol + " -i eth0 --dport " + str(port) + " -j ACCEPT") + os.system("ip6tables -A INPUT -p " + protocol + " --dport " + str(port) + " -j ACCEPT") else: - os.system("iptables -A INPUT -p " + protocol + " -i eth0 --dport " + str(port) + " -j ACCEPT") + os.system("iptables -A INPUT -p " + protocol + " --dport " + str(port) + " -j ACCEPT") if upnp and not ipv6: if port in firewall['UPNP']['ports'][protocol]: upnpc = miniupnpc.UPnP()