Using reTurn Server
From reSIProcate
[edit] Command line options
Usage: reTurnServer <address> <turnPort> <altAddress> <altPort>
- address: local IP address of this machine - for STUN bind responses to contain correct information you must specify a particular IP address here, instead of using 0.0.0.0
- turnPort: specify the port to listen on for stun/turn messages. Note: turnPort+1 will be used to listen for TLS messages
- altAddress: an alternative local IP address - used for RFC3489 backwards compatibility support for BIND requests (specify as 0.0.0.0 and altPort as 0 to disable RFC3489 backwards compatibility support)
- altPort: an alternative local UDP port - used for RFC3489 backwards compatibility support for BIND requests (specify as 0 to disable RFC3489 backwards compatibility support)
IPv4 sample: reTurnServer 192.168.1.1 8777 192.168.1.2 3489
IPv6 sample: reTurnServer 3ffe:501:8:0:260:97ee:fe40:efac 8777 0::0 0
[edit] Hardcoded Settings
The following settings are currently hardcoded and can be changed by modifying the code and recompiling. The configuration framework needs to be added in order to make these settings configurable at startup time.
- Logging Level: Info
- SSL context options: asio::ssl::context::default_workarounds | sio::ssl::context::no_sslv2 | asio::ssl::context::single_dh_use
- SSL server certicate (from working directory): #define SERVER_CERT_FILE "server.pem"
- SSL temporary Diffie-Hellman parameters file (from working directory): #define TMP_DH_FILE "dh512.pem"
- SSL server certificate password: "test"
- Default Turn Permission inactivity seconds: 300 (5 minutes)
- Authentication Mode: RequestHandler::LongTermPassword
- Authentication Realm: "test"
- Authentication Username: "test"
- Authentication Password: "1234"
- Default Nonce Lifetime: 3600 (1 hour)
- Default Allocation Lifetime: 600 (10 minutes)
- Default Max Allocation Lifetime: 3600 (1 hour)
- Default Bandwidth: 100 (100 kbit/s - enough for G711 RTP)

