Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 5d6a6d2

Browse files
authored
Merge pull request #223 from basisbit/patch-4
Double amount of UDP ports that coturn may use
2 parents d09dec6 + 0241087 commit 5d6a6d2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

_posts/2019-02-14-setup-turn-server.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ You need to setup a fully qualified domain name that resolves to the external IP
4545

4646
## Required Ports
4747

48-
On the coturn server, you need to have the following ports (in addition port 22) available for BigBlueButton clients to connect (port 3478 and 443) and for coturn to connect to your BigBlueButton server (49152 - 65535).
48+
On the coturn server, you need to have the following ports (in addition port 22) available for BigBlueButton clients to connect (port 3478 and 443) and for coturn to connect to your BigBlueButton server (32768 - 65535).
4949

5050
| Ports | Protocol | Description |
5151
| ----------- | -------- | --------------------- |
5252
| 3478 | TCP/UDP | coturn listening port |
5353
| 443 | TCP/UDP | TLS listening port |
54-
| 49152-65535 | UDP | relay ports range |
54+
| 32768-65535 | UDP | relay ports range |
5555

5656
## Generating TLS certificates
5757

@@ -150,6 +150,12 @@ log-file=/var/log/coturn.log
150150

151151
# To enable single filename logs you need to enable the simple-log flag
152152
simple-log
153+
154+
# Lower and upper bounds of the UDP relay endpoints:
155+
# (default values are 49152 and 65535)
156+
#
157+
min-port=32768
158+
max-port=65535
153159
```
154160

155161
If the TURN server is used by many users concurrently, it might hit the open file-handles limit. Therefore it is recommended to increase this limit by adding `ulimit -n 49152` in `/etc/init.d/coturn` or editing the systemd service specification using `sudo systemctl edit --full coturn` and then adding `LimitNOFILE=49152`. Once this change is applied, restart the coturn service.

0 commit comments

Comments
 (0)