turn server ( coturn ) の install & 動作確認メモ(備忘録)
install
on Ubuntu 18.04
$ sudo apt-get update
$ sudo apt-get install coturn
Coturn-4.5.0.7
will be installed by steps written above. Uncomment /etc/default/coturn
TURNSERVER_ENABLED=1
then,
$ sudo systemctl restart coturn
config
/etc/turnserver.conf
listening-port=LISTENING_PORT
tls-listening-port=TLS_LISTENING_PORT
external-ip=PUBLIC_IP_ADDR/INTERNAL_IP_ADDR
fingerprint
lt-cred-mech
server-name=example.com
realm=example.com
# user password
user=guest:somepassword
total-quota=100
stale-nonce=600
# Path to SSL certification and private
cert=/etc/letsencrypt/live/example.com/cert.pem
pkey=/etc/letsencrypt/live/example.com/privkey.pem
# Specify the allowed OpenSSL cipher list for TLS/DTLS connections
cipher-list="ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384"
test
- turnutils_uclient
# udp test
$ turnutils_uclient SERVER_NAME -p PORT_NUMBER -u guest -w somepassword -y
# tcp test
$ turnutils_uclient -t SERVER_NAME -p PORT_NUMBER -u guest -w somepassword -y
-
test site
- Trickle ICE test
- IceTest.info](https://icetest.info/)
tips
how to obtain public IP of turn server.
$ curl -4 https://icanhazip.com 2>/dev/null