1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Add action to close turnserver ports

This commit is contained in:
Josué Tille 2018-08-30 18:33:24 +02:00
parent 28eb7da9fc
commit 73b44d5fc5
No known key found for this signature in database
GPG key ID: D5E068C6DFA8681D

View file

@ -7,8 +7,7 @@
"description": { "description": {
"en": "Update the ip in the turnserver config" "en": "Update the ip in the turnserver config"
} }
}, },{
{
"id": "open_turnserver_firewall_ports", "id": "open_turnserver_firewall_ports",
"name": "Open ports for turnserver", "name": "Open ports for turnserver",
"command": "yunohost firewall allow Both 49153:49193", "command": "yunohost firewall allow Both 49153:49193",
@ -17,4 +16,13 @@
"description": { "description": {
"en": "Open the ports range 49153:49193 with TCP and UDP to be able to use correctly the turnserver." "en": "Open the ports range 49153:49193 with TCP and UDP to be able to use correctly the turnserver."
} }
},{
"id": "close_turnserver_firewall_ports",
"name": "Close ports for turnserver",
"command": "yunohost firewall disallow Both 49153:49193",
"user": "root",
"accepted_return_codes": [0],
"description": {
"en": "Close the ports range 49153:49193 with TCP and UDP. (Undo \"Open ports for turnserver\" action)"
}
}] }]