Skip to content

Instantly share code, notes, and snippets.

@chathudan
Last active April 4, 2020 11:55
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chathudan/2024fc8ab182d789205d to your computer and use it in GitHub Desktop.
Save chathudan/2024fc8ab182d789205d to your computer and use it in GitHub Desktop.
Turn Server Installation Documentation

Turn Server Installation Documentation

change the package according to your server

wget http://turnserver.open-sys.org/downloads/v3.2.4.4/turnserver-3.2.4.4-debian-wheezy-ubuntu-
mint-x86-64bits.tar.gz

tar -zxvf turnserver-3.2.4.4-debian-wheezy-ubuntu-mint-x86-64bits.tar.gz

wget http://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz

tar -zxvf libevent-2.0.21-stable.tar.gz

cd libevent-2.0.21-stable/

./configure

make && make install

dpkg -i rfc5766-turn-server_3.2.4.4-1_amd64.deb

cd /etc/
vi turnserver.conf

Paste the following:

listening-device=eth0
listening-ip=YOUR_IP_HERE
listening-port=3478
userdb=turnuserdb.conf
relay-device=eth0
realm=YOUR_REALM_IP_HERE
lt-cred-mech
log-file=/var/log/turnserver.log
vi turnuserdb.conf

Put the username password in the following format:

testuser:pass0wrd

To Start the Turn Server:

sh /data/start_turn_server.sh

To add new Turn User:

sh /data/ addTurnUser.sh

To See if the Turn Server is running :

ps aux | grep –i turn

The above command should list some processes as turnserver , if the TURN server is running properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment