webrtc/coturn

更新日: 2021-03-25 (木) 00:46:10 (80d)

coturnのセットアップについて記述する。

coturn (centos)

インストール

ここではepelリポジトリにあるパッケージを使用する。

curl -L "https://download-ib01.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" -O
sudo yum install -y epel-release-latest-7.noarch.rpm
sudo yum install -y coturn

URL https://centos.pkgs.org/7/epel-x86_64/coturn-4.5.2-1.el7.x86_64.rpm.html

各種ファイルがインストールされる場所は以下のとおりである。

$ sudo rpm -qs coturn
normal        /etc/coturn
normal        /etc/coturn/turnserver.conf
normal        /etc/logrotate.d/coturn
normal        /etc/pki/coturn
normal        /etc/pki/coturn/private
normal        /etc/pki/coturn/public
normal        /run/coturn
normal        /usr/bin/turnadmin
normal        /usr/bin/turnserver
normal        /usr/lib/systemd/system/coturn.service
normal        /usr/lib/tmpfiles.d/coturn.conf
normal        /usr/share/coturn
normal        /usr/share/coturn/schema.mongo.sh
normal        /usr/share/coturn/schema.sql
normal        /usr/share/coturn/schema.stats.redis
normal        /usr/share/coturn/schema.userdb.redis
normal        /usr/share/coturn/testmongosetup.sh
normal        /usr/share/coturn/testredisdbsetup.sh
normal        /usr/share/coturn/testsqldbsetup.sql
normal        /usr/share/doc/coturn
normal        /usr/share/doc/coturn/README.turnadmin
normal        /usr/share/doc/coturn/README.turnserver
normal        /usr/share/doc/coturn/etc
normal        /usr/share/doc/coturn/etc/turnserver.conf
normal        /usr/share/doc/coturn/scripts
normal        /usr/share/doc/coturn/scripts/basic
normal        /usr/share/doc/coturn/scripts/basic/dos_attack.sh
normal        /usr/share/doc/coturn/scripts/basic/relay.sh
normal        /usr/share/doc/coturn/scripts/basic/tcp_client.sh
normal        /usr/share/doc/coturn/scripts/basic/tcp_client_c2c_tcp_relay.sh
normal        /usr/share/doc/coturn/scripts/basic/udp_c2c_client.sh
normal        /usr/share/doc/coturn/scripts/basic/udp_client.sh
normal        /usr/share/doc/coturn/scripts/loadbalance
normal        /usr/share/doc/coturn/scripts/loadbalance/master_relay.sh
normal        /usr/share/doc/coturn/scripts/loadbalance/slave_relay_1.sh
normal        /usr/share/doc/coturn/scripts/loadbalance/slave_relay_2.sh
normal        /usr/share/doc/coturn/scripts/loadbalance/tcp_c2c_tcp_relay.sh
normal        /usr/share/doc/coturn/scripts/loadbalance/udp_c2c.sh
normal        /usr/share/doc/coturn/scripts/longtermsecure
normal        /usr/share/doc/coturn/scripts/longtermsecure/secure_dos_attack.sh
normal        /usr/share/doc/coturn/scripts/longtermsecure/secure_dtls_client.sh
normal        /usr/share/doc/coturn/scripts/longtermsecure/secure_dtls_client_cert.sh
normal        /usr/share/doc/coturn/scripts/longtermsecure/secure_relay.sh
normal        /usr/share/doc/coturn/scripts/longtermsecure/secure_relay_cert.sh
normal        /usr/share/doc/coturn/scripts/longtermsecure/secure_sctp_client.sh
normal        /usr/share/doc/coturn/scripts/longtermsecure/secure_tcp_client.sh
normal        /usr/share/doc/coturn/scripts/longtermsecure/secure_tcp_client_c2c_tcp_relay.sh
normal        /usr/share/doc/coturn/scripts/longtermsecure/secure_tls_client.sh
normal        /usr/share/doc/coturn/scripts/longtermsecure/secure_tls_client_c2c_tcp_relay.sh
normal        /usr/share/doc/coturn/scripts/longtermsecure/secure_tls_client_cert.sh
normal        /usr/share/doc/coturn/scripts/longtermsecure/secure_udp_c2c.sh
normal        /usr/share/doc/coturn/scripts/longtermsecure/secure_udp_client.sh
normal        /usr/share/doc/coturn/scripts/longtermsecuredb
normal        /usr/share/doc/coturn/scripts/longtermsecuredb/secure_relay_with_db_mongo.sh
normal        /usr/share/doc/coturn/scripts/longtermsecuredb/secure_relay_with_db_mysql.sh
normal        /usr/share/doc/coturn/scripts/longtermsecuredb/secure_relay_with_db_mysql_ssl.sh
normal        /usr/share/doc/coturn/scripts/longtermsecuredb/secure_relay_with_db_psql.sh
normal        /usr/share/doc/coturn/scripts/longtermsecuredb/secure_relay_with_db_redis.sh
normal        /usr/share/doc/coturn/scripts/longtermsecuredb/secure_relay_with_db_sqlite.sh
normal        /usr/share/doc/coturn/scripts/mobile
normal        /usr/share/doc/coturn/scripts/mobile/mobile_dtls_client.sh
normal        /usr/share/doc/coturn/scripts/mobile/mobile_relay.sh
normal        /usr/share/doc/coturn/scripts/mobile/mobile_tcp_client.sh
normal        /usr/share/doc/coturn/scripts/mobile/mobile_tls_client_c2c_tcp_relay.sh
normal        /usr/share/doc/coturn/scripts/mobile/mobile_udp_client.sh
normal        /usr/share/doc/coturn/scripts/oauth.sh
normal        /usr/share/doc/coturn/scripts/pack.sh
normal        /usr/share/doc/coturn/scripts/peer.sh
normal        /usr/share/doc/coturn/scripts/readme.txt
normal        /usr/share/doc/coturn/scripts/restapi
normal        /usr/share/doc/coturn/scripts/restapi/secure_relay_secret.sh
normal        /usr/share/doc/coturn/scripts/restapi/secure_relay_secret_with_db_mongo.sh
normal        /usr/share/doc/coturn/scripts/restapi/secure_relay_secret_with_db_mysql.sh
normal        /usr/share/doc/coturn/scripts/restapi/secure_relay_secret_with_db_psql.sh
normal        /usr/share/doc/coturn/scripts/restapi/secure_relay_secret_with_db_redis.sh
normal        /usr/share/doc/coturn/scripts/restapi/secure_relay_secret_with_db_sqlite.sh
normal        /usr/share/doc/coturn/scripts/restapi/secure_udp_client_with_secret.sh
normal        /usr/share/doc/coturn/scripts/restapi/shared_secret_maintainer.pl
normal        /usr/share/doc/coturn/scripts/selfloadbalance
normal        /usr/share/doc/coturn/scripts/selfloadbalance/secure_dos_attack.sh
normal        /usr/share/doc/coturn/scripts/selfloadbalance/secure_relay.sh
normal        /usr/share/licenses/coturn-4.5.2
normal        /usr/share/licenses/coturn-4.5.2/LICENSE
normal        /usr/share/man/man1/coturn.1.gz
normal        /usr/share/man/man1/turnadmin.1.gz
normal        /usr/share/man/man1/turnserver.1.gz
normal        /var/lib/coturn
normal        /var/log/coturn

設定ファイルは、/etc/coturn/turnserver.conf である。

設定

/usr/lib/systemd/system/coturn.service

coturn userで起動するが、80443をバインドすると権限がないため起動エラーとなる。
その場合はCapabilitiesを指定する。

[Service]
AmbientCapabilities=CAP_NET_BIND_SERVICE

参考リンク


トップ   差分 バックアップ リロード   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
目次
TOP | 閉じる | ダブルクリックで閉じる