Kendi TURN sunucunuzu kurmak

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

Varsayılan TURN sunucusu “turn.jami.net”, kullanıcı adı “ring”, şifresi “ring” ve alan “ring” ile.

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.

Kurulum

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

apt-get install coturn

Yapılandırma

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).

TURN sunucusunda kullanıcılar oluşturmak

TURN sunucusunda kullanıcılar oluşturmak için turnadmin ikili kullanın (bu, süper kullanıcı izinleri gerektirebilir).

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

TURN sunucusu başlatılıyor

turnserver -c turnserver.conf

Jami’yi TURN sunucusu ile doğrulama için yapılandırmak

Jami’yi hesap ayarlarının gelişmiş bölümünden TURN sunucunu kullanmak için yapılandırabilirsiniz:

Alan

Değer

Örnek

** sunucu url**

sunucunuzun host ve port

0.0.0.0:10000

** Kullanıcı adı**

Kullanıcı adı

Bob

** Şifre**

Parola

gizli parola

Kral

bölge

Sfl