How To Install coturn on CentOS 7

In this tutorial we learn how to install coturn on CentOS 7. coturn is TURN/STUN & ICE Server

Introduction

In this tutorial we learn how to install coturn on CentOS 7.

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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install coturn.

Install coturn on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install coturn

Install coturn on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install coturn

How To Uninstall coturn on CentOS 7

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

sudo dnf remove coturn

References

Summary

In this tutorial we learn how to install coturn on CentOS 7 using yum and dnf.