32 lines
1.1 KiB
Text
32 lines
1.1 KiB
Text
|
|
# Copy outside the repository; replace the realm, secret and certificate paths.
|
||
|
|
# Use the same randomly generated secret in AudioVideoCalls:TurnSharedSecret.
|
||
|
|
realm=turn.example.org
|
||
|
|
fingerprint
|
||
|
|
use-auth-secret
|
||
|
|
static-auth-secret=REPLACE_WITH_A_RANDOM_SERVER_ONLY_SECRET
|
||
|
|
listening-port=3478
|
||
|
|
tls-listening-port=5349
|
||
|
|
cert=/etc/letsencrypt/live/turn.example.org/fullchain.pem
|
||
|
|
pkey=/etc/letsencrypt/live/turn.example.org/privkey.pem
|
||
|
|
min-port=49160
|
||
|
|
max-port=49200
|
||
|
|
no-cli
|
||
|
|
no-multicast-peers
|
||
|
|
no-tcp-relay
|
||
|
|
user-quota=4
|
||
|
|
total-quota=512
|
||
|
|
stale-nonce=600
|
||
|
|
|
||
|
|
# Do not allow the relay to reach private infrastructure or loopback services.
|
||
|
|
denied-peer-ip=0.0.0.0-0.255.255.255
|
||
|
|
denied-peer-ip=10.0.0.0-10.255.255.255
|
||
|
|
denied-peer-ip=100.64.0.0-100.127.255.255
|
||
|
|
denied-peer-ip=127.0.0.0-127.255.255.255
|
||
|
|
denied-peer-ip=169.254.0.0-169.254.255.255
|
||
|
|
denied-peer-ip=172.16.0.0-172.31.255.255
|
||
|
|
denied-peer-ip=192.168.0.0-192.168.255.255
|
||
|
|
denied-peer-ip=224.0.0.0-255.255.255.255
|
||
|
|
denied-peer-ip=::
|
||
|
|
denied-peer-ip=::1
|
||
|
|
denied-peer-ip=fc00::-fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
|
||
|
|
denied-peer-ip=fe80::-febf:ffff:ffff:ffff:ffff:ffff:ffff:ffff
|