Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

turnserver.conf 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # coturn config for BizGaze Connect self-hosted TURN.
  2. # Put this on your VM (public IP) and run via Docker (see docker-compose.yml) or
  3. # native coturn (apt install coturn). Replace every CHANGE_ME / placeholder.
  4. # --- listening ---
  5. listening-port=3478
  6. tls-listening-port=5349
  7. # If this VM has a spare 443, also exposing TURNS on 443 gives the best traversal
  8. # through strict corporate firewalls (uncomment + ensure nothing else uses 443):
  9. # alt-tls-listening-port=443
  10. # Public address clients reach. If the VM has a 1:1 NAT, use external-ip=PUBLIC/PRIVATE.
  11. external-ip=CHANGE_ME_PUBLIC_IP
  12. # Relay port range (open these UDP ports in the firewall too).
  13. min-port=49152
  14. max-port=65535
  15. # --- auth: time-limited shared-secret credentials (matches the app's TURN_SECRET) ---
  16. use-auth-secret
  17. static-auth-secret=CHANGE_ME_LONG_RANDOM_SECRET
  18. realm=connect.yourdomain.com
  19. # --- TLS (needed for turns: on 5349/443). Use a real cert for turn.yourdomain.com ---
  20. cert=/etc/letsencrypt/live/turn.yourdomain.com/fullchain.pem
  21. pkey=/etc/letsencrypt/live/turn.yourdomain.com/privkey.pem
  22. # --- hardening ---
  23. fingerprint
  24. no-cli
  25. no-multicast-peers
  26. no-tcp-relay
  27. # Block relaying to private/internal ranges (prevents your relay being used to reach
  28. # your own LAN / cloud metadata — important SSRF protection):
  29. denied-peer-ip=0.0.0.0-0.255.255.255
  30. denied-peer-ip=10.0.0.0-10.255.255.255
  31. denied-peer-ip=100.64.0.0-100.127.255.255
  32. denied-peer-ip=169.254.0.0-169.254.255.255
  33. denied-peer-ip=172.16.0.0-172.31.255.255
  34. denied-peer-ip=192.168.0.0-192.168.255.255
  35. denied-peer-ip=::1
  36. denied-peer-ip=fc00::-fdff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
  37. # Optional: cap per-session bandwidth (bytes/sec) to protect the VM, e.g. 700000 = ~5.6 Mbps
  38. # bps-capacity=0
  39. # total-quota=100