2025-09-01 09:16:21 +00:00
|
|
|
|
# ========================
|
|
|
|
|
|
# Coturn TURN/STUN Server
|
|
|
|
|
|
# ========================
|
2025-08-31 15:19:51 +00:00
|
|
|
|
|
2025-09-01 09:16:21 +00:00
|
|
|
|
# Ports
|
|
|
|
|
|
# ========================
|
|
|
|
|
|
# Coturn TURN/STUN Server
|
|
|
|
|
|
# ========================
|
2025-08-31 15:19:51 +00:00
|
|
|
|
|
2025-09-01 09:16:21 +00:00
|
|
|
|
# Ports
|
2025-08-31 15:19:51 +00:00
|
|
|
|
listening-port=3478
|
|
|
|
|
|
tls-listening-port=5349
|
|
|
|
|
|
|
2025-09-01 09:16:21 +00:00
|
|
|
|
# IP / Domain
|
|
|
|
|
|
listening-ip=0.0.0.0
|
|
|
|
|
|
relay-ip=0.0.0.0
|
2025-09-01 12:52:01 +00:00
|
|
|
|
external-ip=213.238.160.81/172.20.0.2
|
2025-09-01 09:16:21 +00:00
|
|
|
|
realm=turn.sozsoft.com
|
2025-08-31 15:19:51 +00:00
|
|
|
|
|
2025-09-01 09:16:21 +00:00
|
|
|
|
# Auth
|
|
|
|
|
|
lt-cred-mech
|
|
|
|
|
|
user=webrtc:strongpassword123
|
2025-08-31 15:19:51 +00:00
|
|
|
|
|
2025-09-01 09:16:21 +00:00
|
|
|
|
# TLS
|
2025-08-31 15:19:51 +00:00
|
|
|
|
cert=/etc/ssl/sozsoft.com/fullchain1.pem
|
|
|
|
|
|
pkey=/etc/ssl/sozsoft.com/privkey1.pem
|
|
|
|
|
|
|
2025-09-01 09:16:21 +00:00
|
|
|
|
# Security
|
2025-08-31 15:19:51 +00:00
|
|
|
|
fingerprint
|
|
|
|
|
|
stale-nonce
|
2025-09-01 09:16:21 +00:00
|
|
|
|
no-loopback-peers
|
|
|
|
|
|
no-multicast-peers
|
|
|
|
|
|
|
|
|
|
|
|
# Performance
|
|
|
|
|
|
min-port=49160
|
|
|
|
|
|
max-port=49200
|
|
|
|
|
|
|
|
|
|
|
|
# Logs
|
|
|
|
|
|
#log-file=/var/log/turnserver.log
|
|
|
|
|
|
simple-log
|
|
|
|
|
|
cli-password=supersecret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# sudo ufw allow 3478/udp
|
|
|
|
|
|
# sudo ufw allow 3478/tcp
|
|
|
|
|
|
# sudo ufw allow 5349/udp
|
|
|
|
|
|
# sudo ufw allow 5349/tcp
|
|
|
|
|
|
# sudo ufw allow 49152:49200/udp
|
|
|
|
|
|
|
|
|
|
|
|
# https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/?utm_source=chatgpt.com
|
|
|
|
|
|
# Username: webrtc
|
|
|
|
|
|
# Credential: strongpassword123
|
|
|
|
|
|
# Relay candidate çıkarsa → her şey çalışıyor
|