Janus
Janus Media server configure with Turn server
May 01, 2020
1 min

turn server setup

open firewall port

tcp :80
tcp: 443
udp :10000

install coturn server

apt-get -y update
apt-get -y install coturn

enable turn server

sudo vim /etc/default/coturn
TURNSERVER_ENABLED=1

setup certbot

sudo apt-get -y  update &&\
sudo apt-get -y install software-properties-common &&\
sudo add-apt-repository -y universe &&\
sudo add-apt-repository -y ppa:certbot/certbot &&\
sudo apt-get -y update &&\
sudo apt-get -y install certbot


generate ssl

sudo certbot certonly --standalone

add certificate


realm=turn.telzee.io
cert=/etc/letsencrypt/live/turn.telzee.io/fullchain.pem
pkey=/etc/letsencrypt/live/turn.telzee.io/privkey.pem

turn configure

keep-address-family
user=guest:guest
realm=turn.telzee.io
cert=/etc/letsencrypt/live/turn.telzee.io/fullchain.pem
pkey=/etc/letsencrypt/live/turn.telzee.io/privkey.pem
no-multicast-peers
listening-port=443
tls-listening-port=443
listening-ip=0.0.0.0
external-ip=34.119.11.140 #or just the external ip
fingerprint
lt-cred-mech
# https://ssl-config.mozilla.org/#server=haproxy&version=2.1&config=intermediate&openssl=1.1.0g&guideline=5.4
cipher-list=ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
# jitsi-meet coturn relay disable config. Do not modify this line
# Listener interface device (optional, Linux only).
# NOT RECOMMENDED. 
stale-nonce
mobility
no-tlsv1
no-tlsv1_1
no-stdout-log
verbose

test turn server

https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/

configure janus turn credentials

 vim /opt/janus/etc/janus/janus.jcfg

turn_server = "turn.telzee.io"
turn_port = 443
turn_type = "udp"
turn_user = "user"
turn_pwd = "pass"

Tags

webrtcjanusubuntu

Related Posts

Janus
How to install Janus Gateway in Ubuntu Server 18.04
July 15, 2021
1 min