How to get all those UDP only ports open in the config? #5

Open
opened 2021-12-04 15:51:53 +00:00 by decentral1se · 3 comments
Owner

compose.yml Lines 103 to 111 in 505a0f550c
# Audio/Video Data Proxy (Turn Data, see below)
- target: 49152
published: 49152
protocol: udp
mode: host
- target: 49153
published: 49153
protocol: udp
mode: host
vs. what https://github.com/snikket-im/snikket-server/blob/master/docs/advanced/firewall.md#ports says - do we need some generation script to get the hardcoding going for the ports?

https://git.coopcloud.tech/coop-cloud/snikket/src/commit/505a0f550c875506f5a33505dc0743eed078b3ac/compose.yml#L103-L111 vs. what https://github.com/snikket-im/snikket-server/blob/master/docs/advanced/firewall.md#ports says - do we need some generation script to get the hardcoding going for the ports?
Author
Owner

Did add

compose.yml Lines 15 to 17 in 505a0f550c
# https://github.com/snikket-im/snikket-server/blob/master/docs/advanced/firewall.md#how-many-ports-does-the-turn-service-need
- SNIKKET_TWEAK_TURNSERVER_MIN_PORT=49152
- SNIKKET_TWEAK_TURNSERVER_MAX_PORT=49153
in the meantime.

Did add https://git.coopcloud.tech/coop-cloud/snikket/src/commit/505a0f550c875506f5a33505dc0743eed078b3ac/compose.yml#L15-L17 in the meantime.
Author
Owner

If you follow #6 (comment) and config an external coturn (not setup in the recipe yet but simple to do) then you can avoid all these port settings. This could be setup nicely in a compose.yml/compose.turn.yml config soon. Doesn't solve the core problem of this ticket ofc but is a work-around.

If you follow https://git.coopcloud.tech/coop-cloud/snikket/issues/6#issuecomment-11268 and config an external coturn (not setup in the recipe yet but simple to do) then you can avoid all these port settings. This could be setup nicely in a `compose.yml`/`compose.turn.yml` config soon. Doesn't solve the core problem of this ticket ofc but is a work-around.
Author
Owner
- https://git.coopcloud.tech/coop-cloud/snikket#how-does-the-coturn-setup-work - https://git.coopcloud.tech/coop-cloud/snikket/src/branch/main/compose.coturn-int.yml
Sign in to join this conversation.
No description provided.