mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Bug fix and add port 53 UDP
This commit is contained in:
parent
b384a41b0e
commit
a48c0006f5
2 changed files with 9 additions and 5 deletions
|
@ -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]
|
||||||
|
|
|
@ -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"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue