Nastavljanje lastnega strežnika TURN

Jami can be configured to use TURN or STUN servers (RFC5766) to establish a connection between two peers.

Predpostavljeni strežnik TURN je „turn.jami.net“, z uporabniškim imenom „ring“, geslom „ring“ in realmom „ring“.

In this guide, we will setup a coTURN server. There are other TURN/STUN server implementations available under a free license, such as TurnServer and Restund.

Vgradnja

The CoTURN server is available on most Linux distributions. On Debian, install it with the following command:

apt-get install coturn

Konfiguracija

Here is a basic turnserver.conf configuration file:

listening-port=10000
listening-ip=0.0.0.0
min-port=10000
max-port=30000
lt-cred-mech
realm=sfl

This also will function as a STUN server. The STUN server does not require a username and password (A STUN server uses very little bandwidth).

Ustvarjanje uporabnikov na vašem strežniku TURN

Če želite ustvariti uporabnike na vašem strežniku TURN, uporabite dvojni turnadmin (za to je mogoče potrebno dovoljenje superup uporabnika).

turnadmin -a -u bob -p secretpassword -r sfl

Izstrelitev strežnika TURN

turnserver -c turnserver.conf

Nastavljanje Jamija za preverjanje pristnosti s strežnikom TURN

Jamija lahko nastavite za uporabo strežnika TURN iz naprednega dela nastavitev računa:

Polje

Vrednost

Primeri

** URL strežnika**

gost in port vašega strežnika

0,0.0.0:10000

** uporabniško ime**

uporabniško ime

Bob

Krozilo

geslo

skrivnostna gesla

v kraljestvu

kraljestvo

SFR