1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/coturn_ynh.git synced 2024-09-03 18:16:32 +02:00

Add firewall rules

This commit is contained in:
glougloumoute 2021-02-21 09:26:19 +01:00
parent ad013d0e05
commit 8590453d73
3 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,9 @@
-- XXX modules that need to be enabled in main config file.
--modules_enabled = {
-- "extdisco";
-- "jingle_nodes";
--};
external_services = { external_services = {
["__DOMAIN__"] = { ["__DOMAIN__"] = {
[1] = { [1] = {

View file

@ -64,7 +64,8 @@ turnserver_tls_port=$(ynh_find_port --port=5349)
turnserver_alt_tls_port=$(ynh_find_port --port=$((turnserver_tls_port+1))) turnserver_alt_tls_port=$(ynh_find_port --port=$((turnserver_tls_port+1)))
cli_port=$(ynh_find_port --port=5766) cli_port=$(ynh_find_port --port=5766)
# TODO also reserve UDP Port range 49152:65535 # Reserve UDP Port range 49152:65535
ynh_exec_warn_less yunohost firewall allow UDP -4 49152:65535 # XXX hard-coded values
# Open the port # Open the port
ynh_exec_warn_less yunohost firewall allow Both $turnserver_standard_port ynh_exec_warn_less yunohost firewall allow Both $turnserver_standard_port

View file

@ -115,7 +115,8 @@ then
ynh_exec_warn_less yunohost firewall disallow Both $turnserver_alt_tls_port ynh_exec_warn_less yunohost firewall disallow Both $turnserver_alt_tls_port
fi fi
# TODO also release UDP port range 49152:65535 # Release UDP port range 49152:65535
ynh_exec_warn_less yunohost firewall disallow UDP -4 49152:65535 # XXX hard-coded values
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION