1
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

turn server install & 動作確認メモ

Last updated at Posted at 2022-05-30

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

tips

how to obtain public IP of turn server.

$ curl -4 https://icanhazip.com 2>/dev/null

references

1
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?