Bug fix and add port 53 UDP

This commit is contained in:
Titoko 2013-03-13 13:32:40 +01:00
parent b384a41b0e
commit a48c0006f5
2 changed files with 9 additions and 5 deletions

View file

@ -1,6 +1,6 @@
ipv4: ipv4:
TCP: [22, 25, 53, 80, 443, 5222, 5269, 5280] TCP: [22, 25, 53, 80, 443, 5222, 5269, 5280]
UDP: [] UDP: [53]
ipv6: ipv6:
TCP: [22] TCP: [22]
UDP: [] UDP: [53]

View file

@ -229,9 +229,13 @@ def firewall_installupnp():
""" """
os.system("touch /etc/cron.d/yunohost-firewall") os.system("touch /etc/cron.d/yunohost-firewall")
os.system("echo '*/50 * * * * root yunohost firewall reload -u>>/dev/null'>/etc/cron.d/yunohost-firewall") os.system("echo '*/50 * * * * root yunohost firewall reload -u>>/dev/null'>/etc/cron.d/yunohost-firewall")
win_msg(_("Upnp install")) win_msg(_("UPNP cron installed"))
def firewall_removeupnp(): def firewall_removeupnp():
os.system("rm /etc/cron.d/yunohost-firewall") try:
win_msg(_("Upnp remove")) os.remove("/etc/cron.d/yunohost-firewall")
except:
raise YunoHostError(167,_("UPNP cron was not installed!"))
win_msg(_("UPNP cron removed"))