Stun-Turn-Server

Stun-Turn-Server

Docker-Anwendung from ich777's Repository

Übersicht

This is a Basic STUN & TURN server that was mainly created for Nextcloud Talk. It is fully automated and will create all the necessary files and passwords so that the server can sucessfully start and run. Please read all the discriptions from the Variables carefully and also look at the 'Show more settings' tab. ATTENTION: Please ignore the socket errors after the server startup if you don't have IPv6 enabled on your server.

Laufzeit-Argumente

Netzwerk
bridge
Shell
bash
Privilegiert
false
Extra Params
--restart=unless-stopped

Konfiguration der Vorlage

Container PathPathrw

Container Path: /stun-turn

Ziel
/stun-turn
Wert
/mnt/cache/appdata/stun-turn-server
TCP PortPorttcp

TCP Port

Ziel
5349
Wert
5349
UDP PortsPortudp

UDP Port

Ziel
5349
Wert
5349
Port VariableVariable

If you change this variable you have to create two new port forwardings with the corresponding ports one for TCP and one for UDP.

Ziel
PORT
Wert
5349
Static SecretVariable

Create your own secret and enter it here or leave empty and the server creats a secret that is stored into 'secret.txt' in the main directory of the container (generate it for example in a linux terminal with the command 'openssl rand -hex 32' without quotes).

Ziel
SECRET
RealmVariable

Your hostname (eg: 'example.org' without quotes).

Ziel
REALM
Certificate File NameVariable

Name of the certification file (leave empty if the server should create one or replace it with your own).

Ziel
CERT_FILE
Wert
cert.pem
Private Key File NameVariable

Name of the private key file (leave empty if the server should create one or replace it with your own).

Ziel
PRIVKEY_FILE
Wert
privkey.pem
Diffie-Hellman Key File NameVariable

Name of the Diffie–Hellman key file (leave empty if the server should create one or replace it with your own - also plase look under the 'Show more settings' tab if you want to generate a bigger or smaller key default is: 2048).

Ziel
DH_FILE
Wert
dhparam.pem
Display Secrets in logVariable

Display your secrets in the log (set to 'true' or leave empty to disable it).

Ziel
DISPLAY_SECRETS
Wert
true
Certificate Generation - CountryVariable

Country code for your certificate if the server should create one (two letters eg: 'US' without quotes - also plase look under the 'Show more settings' tab there are more settings for generating your certificate).

Ziel
CA_COUNTRY
Extra Startup ParametersVariable

Here you can enter your Extra Startup Parameters if needed (you can get a full list of commands from here: https://github.com/coturn/coturn/wiki/turnserver)

Ziel
EXTRA_PARAMS
Total QuotaVariable

Total allocations quota: global limit on concurrent allocations (only change if you know what you are doing).

Ziel
TOTAL_QUOTA
Wert
100
Maximum bpsVariable

Max bytes-per-second bandwidth a TURN session is allowed to handle (input and output network streams are treated separately). Anything above that limit will be dropped or temporary suppressed - within the available buffer limits (only change if you know what you are doing).

Ziel
MAX_BPS
Wert
0
Cipher ListVariable

Allowed OpenSSL cipher list for TLS/DTLS connections (only change if you know what you are doing).

Ziel
CIPHER_LIST
Wert
ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384
Certificate Generation - Key LengthVariable

Enter your preferred key length (the higher the value the longer it takes to generate the certificate).

Ziel
CERT_LENGTH
Wert
2048
Certificate Generation - Valid DaysVariable

Specify how long that the certificate should be valid in days.

Ziel
CERT_VALID_DAYS
Wert
3650
Certificate Generation - State or ProvinceVariable

Specify your state or province.

Ziel
CA_STATE_PROV
Wert
None
Certificate Generation - LocalityVariable

Specify your locality.

Ziel
CA_LOCALITY
Wert
None
Certificate Generation - OrganizationVariable

Specify your organiszation.

Ziel
CA_ORGANIZATION
Wert
None
Diffie–Hellman Key LengthVariable

Enter your preferred key length (the higher the value the longer it takes to generate the key).

Ziel
DH_LENGTH
Wert
2048
Command Line PasswordVariable

Enter your CLI password or leave empty if you want that the server creates a random one (please note that you have to manually enable the console with the '--cli-port PORT' - PORT stands for your preferred port - in the Extra Startup Parameters and create the corresponding port).

Ziel
CLI_PASSWORD
Listening IPVariable

Specify the listening port (only change if you know what you are doing).

Ziel
LISTENING_IP
Wert
0.0.0.0
UMASKVariable

Container Variable: 000

Wert
000
UIDVariable

Container Variable: UID

Wert
99
GIDVariable

Container Variable: GID

Wert
100
DATA_PERMVariable

Container Variable: DATA_PERM

Wert
770

Kategorien

Statistik herunterladen

102,817
Downloads insgesamt
146
Dieser Monat
143
Durchschnittlich / Monat

Gesamte Downloads im Laufe der Zeit

Tabelle laden...

Einzelheiten

Repository
ghcr.io/ich777/stun-turn-server
Zuletzt aktualisiert2025-12-11
Erstmals gesehen2020-03-21

Führen Sie Stun-Turn-Server auf Unraid aus.

Stun-Turn-Server ist gelistet in Community Apps für Unraid OS. Erkunden Sie Unraid, um einen flexiblen Heimserver, ein NAS oder ein Heimlabor aufzubauen.