Skip to content

Commit c3152a8

Browse files
committed
Widen the TURN relay range to 49152-65535
1 parent 096d405 commit c3152a8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎config/ports.env‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ DUB_PORT=8092
101101
# TURN/STUN (eturnal, docs/TURN.md). TURN_PORT takes UDP and TCP straight from clients on
102102
# P2P_LISTEN_IP: STUN has to see the client's own address, so it cannot sit behind nginx.
103103
# nginx terminates TLS on TURN_TLS_PORT and forwards to TURN_PROXY_PORT with the PROXY
104-
# protocol. The relay range must be open in the firewall alongside TURN_PORT.
104+
# protocol. The relay range must be open in the firewall (UDP) alongside TURN_PORT.
105105
TURN_PORT=3478
106106
TURN_TLS_PORT=5349
107107
TURN_PROXY_PORT=3479
108108
TURN_RELAY_MIN_PORT=49152
109-
TURN_RELAY_MAX_PORT=49407
109+
TURN_RELAY_MAX_PORT=65535
110110
# The dashboard: the network's own status UI and API (docs/DASHBOARD.md)
111111
DASHBOARD_PORT=8090
112112

‎packages/network-config/tests/turn.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('eturnalConfig', () => {
4747
assert.ok(!yml.includes('whitelist_peers'));
4848
assert.match(yml, /ip: "203\.0\.113\.4"\n {6}port: 3478\n {6}transport: udp/);
4949
assert.match(yml, /ip: "127\.0\.0\.1"\n {6}port: 3479\n {6}transport: tcp\n {6}proxy_protocol: true/);
50-
assert.match(yml, /relay_min_port: 49152\n {2}relay_max_port: 49407/);
50+
assert.match(yml, /relay_min_port: 49152\n {2}relay_max_port: 65535/);
5151
});
5252

5353
it('never writes the secret to disk', () => {

0 commit comments

Comments
 (0)