From d30ca3ae46ae37f145d870f12d5caffabffa0ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Mon, 12 Feb 2018 20:31:05 +0100 Subject: [PATCH] Fix open port with upnp --- scripts/install | 6 +++--- scripts/restore | 6 +++--- scripts/upgrade | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index f425131..e55de83 100644 --- a/scripts/install +++ b/scripts/install @@ -73,9 +73,9 @@ turnserver_alt_tls_port=$(ynh_find_port $((turnserver_tls_port+1))) cli_port=$(ynh_find_port 5766) # Open this port -yunohost firewall allow --no-upnp TCP $synapse_tls_port > /dev/null 2>&1 -yunohost firewall allow --no-upnp Both $turnserver_tls_port > /dev/null 2>&1 -yunohost firewall allow --no-upnp Both $turnserver_alt_tls_port > /dev/null 2>&1 +yunohost firewall allow TCP $synapse_tls_port > /dev/null 2>&1 +yunohost firewall allow Both $turnserver_tls_port > /dev/null 2>&1 +yunohost firewall allow Both $turnserver_alt_tls_port > /dev/null 2>&1 # Store opened ports ynh_app_setting_set $app synapse_port $port diff --git a/scripts/restore b/scripts/restore index b49c110..1c79f96 100644 --- a/scripts/restore +++ b/scripts/restore @@ -78,9 +78,9 @@ adduser turnserver ssl-cert #================================================= # Ouvre le port dans le firewall -yunohost firewall allow --no-upnp TCP $synapse_tls_port > /dev/null 2>&1 -yunohost firewall allow --no-upnp Both $turnserver_tls_port > /dev/null 2>&1 -yunohost firewall allow --no-upnp Both $turnserver_alt_tls_port > /dev/null 2>&1 +yunohost firewall allow TCP $synapse_tls_port > /dev/null 2>&1 +yunohost firewall allow Both $turnserver_tls_port > /dev/null 2>&1 +yunohost firewall allow Both $turnserver_alt_tls_port > /dev/null 2>&1 #================================================= # SETUP SSOWAT diff --git a/scripts/upgrade b/scripts/upgrade index 2034733..9d552ce 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -318,7 +318,7 @@ then ynh_app_setting_set $app turnserver_alt_tls_port $turnserver_alt_tls_port ynh_app_setting_set $app cli_port $cli_port - yunohost firewall allow --no-upnp Both $turnserver_alt_tls_port > /dev/null 2>&1 + yunohost firewall allow Both $turnserver_alt_tls_port > /dev/null 2>&1 # Configure systemd cp ../conf/default_coturn /etc/default/coturn-$app