mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Fix iptables flush problem
This commit is contained in:
parent
752b9b4609
commit
f59550cb30
1 changed files with 2 additions and 1 deletions
|
@ -210,7 +210,7 @@ def add_portmapping(protocol=None,upnp=False,ipv6=None):
|
|||
Return
|
||||
None
|
||||
"""
|
||||
|
||||
os.system ("iptables -P INPUT ACCEPT")
|
||||
if upnp:
|
||||
upnp=miniupnpc.UPnP()
|
||||
upnp.discoverdelay=200
|
||||
|
@ -249,3 +249,4 @@ def add_portmapping(protocol=None,upnp=False,ipv6=None):
|
|||
if upnp:
|
||||
upnp.addportmapping(port,protocol,upnp.lanaddr,port,'yunohost firewall : port %u' % port, '')
|
||||
|
||||
os.system ("iptables -P INPUT DROP")$
|
||||
|
|
Loading…
Add table
Reference in a new issue