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:
parent
ad013d0e05
commit
8590453d73
3 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
-- XXX modules that need to be enabled in main config file.
|
||||
--modules_enabled = {
|
||||
-- "extdisco";
|
||||
-- "jingle_nodes";
|
||||
--};
|
||||
|
||||
external_services = {
|
||||
["__DOMAIN__"] = {
|
||||
[1] = {
|
||||
|
|
|
@ -64,7 +64,8 @@ turnserver_tls_port=$(ynh_find_port --port=5349)
|
|||
turnserver_alt_tls_port=$(ynh_find_port --port=$((turnserver_tls_port+1)))
|
||||
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
|
||||
ynh_exec_warn_less yunohost firewall allow Both $turnserver_standard_port
|
||||
|
|
|
@ -115,7 +115,8 @@ then
|
|||
ynh_exec_warn_less yunohost firewall disallow Both $turnserver_alt_tls_port
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue