How To Install coturn on Rocky Linux 8

In this tutorial we learn how to install coturn on Rocky Linux 8. coturn is TURN/STUN & ICE Server

Introduction

In this tutorial we learn how to install coturn on Rocky Linux 8.

What is coturn

The Coturn TURN Server is a VoIP media traffic NAT traversal server and gateway. It can be used as a general-purpose network traffic TURN server/gateway, too. This implementation also includes some extra features. Supported RFCs TURN specs - RFC 5766 - base TURN specs - RFC 6062 - TCP relaying TURN extension - RFC 6156 - IPv6 extension for TURN - Experimental DTLS support as client protocol. STUN specs - RFC 3489 - “classic” STUN - RFC 5389 - base “new” STUN specs - RFC 5769 - test vectors for STUN protocol testing - RFC 5780 - NAT behavior discovery support The implementation fully supports the following client-to-TURN-server protocols - UDP (per RFC 5766) - TCP (per RFC 5766 and RFC 6062) - TLS (per RFC 5766 and RFC 6062); TLS1.0/TLS1.1/TLS1.2 - DTLS (experimental non-standard feature) Supported relay protocols - UDP (per RFC 5766) - TCP (per RFC 6062) Supported user databases (for user repository, with passwords or keys, if authentication is required) - SQLite - MySQL - PostgreSQL - Redis Redis can also be used for status and statistics storage and notification. Supported TURN authentication mechanisms - long-term - TURN REST API (a modification of the long-term mechanism, for time-limited secret-based authentication, for WebRTC applications) The load balancing can be implemented with the following tools (either one or a combination of them) - network load-balancer server - DNS-based load balancing - built-in ALTERNATE-SERVER mechanism.

We can use yum or dnf to install coturn on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install coturn.

Install coturn on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install coturn using dnf by running the following command:

sudo dnf -y install coturn

Install coturn on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install coturn using yum by running the following command:

sudo yum -y install coturn

How To Uninstall coturn on Rocky Linux 8

To uninstall only the coturn package we can use the following command:

sudo dnf remove coturn

coturn Package Contents on Rocky Linux 8

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

References

Summary

In this tutorial we learn how to install coturn on Rocky Linux 8 using yum and dnf.