turnserver.conf 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. # Coturn TURN SERVER configuration file
  2. #
  3. # Boolean values note: where boolean value is supposed to be used,
  4. # you can use '0', 'off', 'no', 'false', 'f' as 'false,
  5. # and you can use '1', 'on', 'yes', 'true', 't' as 'true'
  6. # If the value is missed, then it means 'true'.
  7. #
  8. # Listener interface device (optional, Linux only).
  9. # NOT RECOMMENDED.
  10. #
  11. #listening-device=eth0
  12. # TURN listener port for UDP and TCP (Default: 3478).
  13. # Note: actually, TLS & DTLS sessions can connect to the
  14. # "plain" TCP & UDP port(s), too - if allowed by configuration.
  15. #
  16. #listening-port=3478
  17. # TURN listener port for TLS (Default: 5349).
  18. # Note: actually, "plain" TCP & UDP sessions can connect to the TLS & DTLS
  19. # port(s), too - if allowed by configuration. The TURN server
  20. # "automatically" recognizes the type of traffic. Actually, two listening
  21. # endpoints (the "plain" one and the "tls" one) are equivalent in terms of
  22. # functionality; but we keep both endpoints to satisfy the RFC 5766 specs.
  23. # For secure TCP connections, we currently support SSL version 3 and
  24. # TLS version 1.0, 1.1 and 1.2.
  25. # For secure UDP connections, we support DTLS version 1.
  26. #
  27. #tls-listening-port=5349
  28. # Alternative listening port for UDP and TCP listeners;
  29. # default (or zero) value means "listening port plus one".
  30. # This is needed for RFC 5780 support
  31. # (STUN extension specs, NAT behavior discovery). The TURN Server
  32. # supports RFC 5780 only if it is started with more than one
  33. # listening IP address of the same family (IPv4 or IPv6).
  34. # RFC 5780 is supported only by UDP protocol, other protocols
  35. # are listening to that endpoint only for "symmetry".
  36. #
  37. #alt-listening-port=0
  38. # Alternative listening port for TLS and DTLS protocols.
  39. # Default (or zero) value means "TLS listening port plus one".
  40. #
  41. #alt-tls-listening-port=0
  42. # Listener IP address of relay server. Multiple listeners can be specified.
  43. # If no IP(s) specified in the config file or in the command line options,
  44. # then all IPv4 and IPv6 system IPs will be used for listening.
  45. #
  46. #listening-ip=172.17.19.101
  47. #listening-ip=10.207.21.238
  48. #listening-ip=2607:f0d0:1002:51::4
  49. # Auxiliary STUN/TURN server listening endpoint.
  50. # Aux servers have almost full TURN and STUN functionality.
  51. # The (minor) limitations are:
  52. #
  53. # 1) Auxiliary servers do not have alternative ports and
  54. # they do not support STUN RFC 5780 functionality (CHANGE REQUEST).
  55. #
  56. # 2) Auxiliary servers also are never returning ALTERNATIVE-SERVER reply.
  57. #
  58. # Valid formats are 1.2.3.4:5555 for IPv4 and [1:2::3:4]:5555 for IPv6.
  59. #
  60. # There may be multiple aux-server options, each will be used for listening
  61. # to client requests.
  62. #
  63. #aux-server=172.17.19.110:33478
  64. #aux-server=[2607:f0d0:1002:51::4]:33478
  65. # (recommended for older Linuxes only)
  66. # Automatically balance UDP traffic over auxiliary servers (if configured).
  67. # The load balancing is using the ALTERNATE-SERVER mechanism.
  68. # The TURN client must support 300 ALTERNATE-SERVER response for this
  69. # functionality.
  70. #
  71. #udp-self-balance
  72. # Relay interface device for relay sockets (optional, Linux only).
  73. # NOT RECOMMENDED.
  74. #
  75. #relay-device=eth1
  76. # Relay address (the local IP address that will be used to relay the
  77. # packets to the peer).
  78. # Multiple relay addresses may be used.
  79. # The same IP(s) can be used as both listening IP(s) and relay IP(s).
  80. #
  81. # If no relay IP(s) specified, then the turnserver will apply the default
  82. # policy: it will decide itself which relay addresses to be used, and it
  83. # will always be using the client socket IP address as the relay IP address
  84. # of the TURN session (if the requested relay address family is the same
  85. # as the family of the client socket).
  86. #
  87. #relay-ip=172.17.19.105
  88. #relay-ip=2607:f0d0:1002:51::5
  89. # For Amazon EC2 users:
  90. #
  91. # TURN Server public/private address mapping, if the server is behind NAT.
  92. # In that situation, if a -X is used in form "-X <ip>" then that ip will be reported
  93. # as relay IP address of all allocations. This scenario works only in a simple case
  94. # when one single relay address is be used, and no RFC5780 functionality is required.
  95. # That single relay address must be mapped by NAT to the 'external' IP.
  96. # The "external-ip" value, if not empty, is returned in XOR-RELAYED-ADDRESS field.
  97. # For that 'external' IP, NAT must forward ports directly (relayed port 12345
  98. # must be always mapped to the same 'external' port 12345).
  99. #
  100. # In more complex case when more than one IP address is involved,
  101. # that option must be used several times, each entry must
  102. # have form "-X <public-ip/private-ip>", to map all involved addresses.
  103. # RFC5780 NAT discovery STUN functionality will work correctly,
  104. # if the addresses are mapped properly, even when the TURN server itself
  105. # is behind A NAT.
  106. #
  107. # By default, this value is empty, and no address mapping is used.
  108. #
  109. #external-ip=60.70.80.91
  110. #
  111. #OR:
  112. #
  113. #external-ip=60.70.80.91/172.17.19.101
  114. #external-ip=60.70.80.92/172.17.19.102
  115. # Number of the relay threads to handle the established connections
  116. # (in addition to authentication thread and the listener thread).
  117. # If explicitly set to 0 then application runs relay process in a
  118. # single thread, in the same thread with the listener process
  119. # (the authentication thread will still be a separate thread).
  120. #
  121. # If this parameter is not set, then the default OS-dependent
  122. # thread pattern algorithm will be employed. Usually the default
  123. # algorithm is the most optimal, so you have to change this option
  124. # only if you want to make some fine tweaks.
  125. #
  126. # In the older systems (Linux kernel before 3.9),
  127. # the number of UDP threads is always one thread per network listening
  128. # endpoint - including the auxiliary endpoints - unless 0 (zero) or
  129. # 1 (one) value is set.
  130. #
  131. #relay-threads=0
  132. # Lower and upper bounds of the UDP relay endpoints:
  133. # (default values are 49152 and 65535)
  134. #
  135. #min-port=49152
  136. #max-port=65535
  137. # Uncomment to run TURN server in 'normal' 'moderate' verbose mode.
  138. # By default the verbose mode is off.
  139. #verbose
  140. # Uncomment to run TURN server in 'extra' verbose mode.
  141. # This mode is very annoying and produces lots of output.
  142. # Not recommended under any normal circumstances.
  143. #
  144. #Verbose
  145. # Uncomment to use fingerprints in the TURN messages.
  146. # By default the fingerprints are off.
  147. #
  148. #fingerprint
  149. # Uncomment to use long-term credential mechanism.
  150. # By default no credentials mechanism is used (any user allowed).
  151. #
  152. #lt-cred-mech
  153. # This option is opposite to lt-cred-mech.
  154. # (TURN Server with no-auth option allows anonymous access).
  155. # If neither option is defined, and no users are defined,
  156. # then no-auth is default. If at least one user is defined,
  157. # in this file or in command line or in usersdb file, then
  158. # lt-cred-mech is default.
  159. #
  160. #no-auth
  161. # TURN REST API flag.
  162. # (Time Limited Long Term Credential)
  163. # Flag that sets a special authorization option that is based upon authentication secret.
  164. #
  165. # This feature's purpose is to support "TURN Server REST API", see
  166. # "TURN REST API" link in the project's page
  167. # https://github.com/coturn/coturn/
  168. #
  169. # This option is used with timestamp:
  170. #
  171. # usercombo -> "timestamp:userid"
  172. # turn user -> usercombo
  173. # turn password -> base64(hmac(secret key, usercombo))
  174. #
  175. # This allows TURN credentials to be accounted for a specific user id.
  176. # If you don't have a suitable id, the timestamp alone can be used.
  177. # This option is just turning on secret-based authentication.
  178. # The actual value of the secret is defined either by option static-auth-secret,
  179. # or can be found in the turn_secret table in the database (see below).
  180. #
  181. # Read more about it:
  182. # - https://tools.ietf.org/html/draft-uberti-behave-turn-rest-00
  183. # - https://www.ietf.org/proceedings/87/slides/slides-87-behave-10.pdf
  184. #
  185. # Be aware that use-auth-secret overrides some part of lt-cred-mech.
  186. # Notice that this feature depends internally on lt-cred-mech, so if you set
  187. # use-auth-secret then it enables internally automatically lt-cred-mech option
  188. # like if you enable both.
  189. #
  190. # You can use only one of the to auth mechanisms in the same time because,
  191. # both mechanism use the username and password validation in different way.
  192. #
  193. # This way be aware that you can't use both auth mechnaism in the same time!
  194. # Use in config either the lt-cred-mech or the use-auth-secret
  195. # to avoid any confusion.
  196. #
  197. #use-auth-secret
  198. # 'Static' authentication secret value (a string) for TURN REST API only.
  199. # If not set, then the turn server
  200. # will try to use the 'dynamic' value in turn_secret table
  201. # in user database (if present). The database-stored value can be changed on-the-fly
  202. # by a separate program, so this is why that other mode is 'dynamic'.
  203. #
  204. #static-auth-secret=north
  205. # Server name used for
  206. # the oAuth authentication purposes.
  207. # The default value is the realm name.
  208. #
  209. #server-name=blackdow.carleon.gov
  210. # Flag that allows oAuth authentication.
  211. #
  212. #oauth
  213. # 'Static' user accounts for long term credentials mechanism, only.
  214. # This option cannot be used with TURN REST API.
  215. # 'Static' user accounts are NOT dynamically checked by the turnserver process,
  216. # so that they can NOT be changed while the turnserver is running.
  217. #
  218. #user=username1:key1
  219. #user=username2:key2
  220. # OR:
  221. #user=username1:password1
  222. #user=username2:password2
  223. #
  224. # Keys must be generated by turnadmin utility. The key value depends
  225. # on user name, realm, and password:
  226. #
  227. # Example:
  228. # $ turnadmin -k -u ninefingers -r north.gov -p youhavetoberealistic
  229. # Output: 0xbc807ee29df3c9ffa736523fb2c4e8ee
  230. # ('0x' in the beginning of the key is what differentiates the key from
  231. # password. If it has 0x then it is a key, otherwise it is a password).
  232. #
  233. # The corresponding user account entry in the config file will be:
  234. #
  235. #user=ninefingers:0xbc807ee29df3c9ffa736523fb2c4e8ee
  236. # Or, equivalently, with open clear password (less secure):
  237. #user=ninefingers:youhavetoberealistic
  238. #
  239. # SQLite database file name.
  240. #
  241. # Default file name is /var/db/turndb or /usr/local/var/db/turndb or
  242. # /var/lib/turn/turndb.
  243. #
  244. #userdb=/var/db/turndb
  245. # PostgreSQL database connection string in the case that we are using PostgreSQL
  246. # as the user database.
  247. # This database can be used for long-term credential mechanism
  248. # and it can store the secret value for secret-based timed authentication in TURN RESP API.
  249. # See http://www.postgresql.org/docs/8.4/static/libpq-connect.html for 8.x PostgreSQL
  250. # versions connection string format, see
  251. # http://www.postgresql.org/docs/9.2/static/libpq-connect.html#LIBPQ-CONNSTRING
  252. # for 9.x and newer connection string formats.
  253. #
  254. #psql-userdb="host=<host> dbname=<database-name> user=<database-user> password=<database-user-password> connect_timeout=30"
  255. # MySQL database connection string in the case that we are using MySQL
  256. # as the user database.
  257. # This database can be used for long-term credential mechanism
  258. # and it can store the secret value for secret-based timed authentication in TURN RESP API.
  259. #
  260. # Optional connection string parameters for the secure communications (SSL):
  261. # ca, capath, cert, key, cipher
  262. # (see http://dev.mysql.com/doc/refman/5.1/en/ssl-options.html for the
  263. # command options description).
  264. #
  265. # Use string format as below (space separated parameters, all optional):
  266. #
  267. #mysql-userdb="host=<host> dbname=<database-name> user=<database-user> password=<database-user-password> port=<port> connect_timeout=<seconds> read_timeout=<seconds>"
  268. #If you want to use password as encrpyted in the mysql connection string MySQL encrypted connection, this is key path.
  269. #This is the file path which contain secret key of aes encryption while using password encryption.
  270. #This attribute should be use if allow-encoding-with-aes set to 1.
  271. #secret-key-file=/path/
  272. #If you want to use password as encrpyted in the mysql connection string. Set allow-encoding-with-aes to 1.
  273. #If you want to use clearteaxt password in the mysql connection string. Set allow-encoding-with-aes to 0.
  274. #You have to enable secret-key-file attribute above as a key location.
  275. #allow-encoding-with-aes=1 or 0
  276. # MongoDB database connection string in the case that we are using MongoDB
  277. # as the user database.
  278. # This database can be used for long-term credential mechanism
  279. # and it can store the secret value for secret-based timed authentication in TURN RESP API.
  280. # Use string format is described at http://hergert.me/docs/mongo-c-driver/mongoc_uri.html
  281. #
  282. #mongo-userdb="mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]"
  283. # Redis database connection string in the case that we are using Redis
  284. # as the user database.
  285. # This database can be used for long-term credential mechanism
  286. # and it can store the secret value for secret-based timed authentication in TURN RESP API.
  287. # Use string format as below (space separated parameters, all optional):
  288. #
  289. #redis-userdb="ip=<ip-address> dbname=<database-number> password=<database-user-password> port=<port> connect_timeout=<seconds>"
  290. # Redis status and statistics database connection string, if used (default - empty, no Redis stats DB used).
  291. # This database keeps allocations status information, and it can be also used for publishing
  292. # and delivering traffic and allocation event notifications.
  293. # The connection string has the same parameters as redis-userdb connection string.
  294. # Use string format as below (space separated parameters, all optional):
  295. #
  296. #redis-statsdb="ip=<ip-address> dbname=<database-number> password=<database-user-password> port=<port> connect_timeout=<seconds>"
  297. # The default realm to be used for the users when no explicit
  298. # origin/realm relationship was found in the database, or if the TURN
  299. # server is not using any database (just the commands-line settings
  300. # and the userdb file). Must be used with long-term credentials
  301. # mechanism or with TURN REST API.
  302. #
  303. # Note: If default realm is not specified at all, then realm falls back to the host domain name.
  304. # If domain name is empty string, or '(None)', then it is initialized to am empty string.
  305. #
  306. #realm=mycompany.org
  307. # The flag that sets the origin consistency
  308. # check: across the session, all requests must have the same
  309. # main ORIGIN attribute value (if the ORIGIN was
  310. # initially used by the session).
  311. #
  312. #check-origin-consistency
  313. # Per-user allocation quota.
  314. # default value is 0 (no quota, unlimited number of sessions per user).
  315. # This option can also be set through the database, for a particular realm.
  316. #
  317. #user-quota=0
  318. # Total allocation quota.
  319. # default value is 0 (no quota).
  320. # This option can also be set through the database, for a particular realm.
  321. #
  322. #total-quota=0
  323. # Max bytes-per-second bandwidth a TURN session is allowed to handle
  324. # (input and output network streams are treated separately). Anything above
  325. # that limit will be dropped or temporary suppressed (within
  326. # the available buffer limits).
  327. # This option can also be set through the database, for a particular realm.
  328. #
  329. #max-bps=0
  330. #
  331. # Maximum server capacity.
  332. # Total bytes-per-second bandwidth the TURN server is allowed to allocate
  333. # for the sessions, combined (input and output network streams are treated separately).
  334. #
  335. # bps-capacity=0
  336. # Uncomment if no UDP client listener is desired.
  337. # By default UDP client listener is always started.
  338. #
  339. #no-udp
  340. # Uncomment if no TCP client listener is desired.
  341. # By default TCP client listener is always started.
  342. #
  343. #no-tcp
  344. # Uncomment if no TLS client listener is desired.
  345. # By default TLS client listener is always started.
  346. #
  347. #no-tls
  348. # Uncomment if no DTLS client listener is desired.
  349. # By default DTLS client listener is always started.
  350. #
  351. #no-dtls
  352. # Uncomment if no UDP relay endpoints are allowed.
  353. # By default UDP relay endpoints are enabled (like in RFC 5766).
  354. #
  355. #no-udp-relay
  356. # Uncomment if no TCP relay endpoints are allowed.
  357. # By default TCP relay endpoints are enabled (like in RFC 6062).
  358. #
  359. #no-tcp-relay
  360. # Uncomment if extra security is desired,
  361. # with nonce value having limited lifetime.
  362. # By default, the nonce value is unique for a session,
  363. # and has unlimited lifetime.
  364. # Set this option to limit the nonce lifetime.
  365. # It defaults to 600 secs (10 min) if no value is provided. After that delay,
  366. # the client will get 438 error and will have to re-authenticate itself.
  367. #
  368. #stale-nonce=600
  369. # Uncomment if you want to set the maximum allocation
  370. # time before it has to be refreshed.
  371. # Default is 3600s.
  372. #
  373. #max-allocate-lifetime=3600
  374. # Uncomment to set the lifetime for the channel.
  375. # Default value is 600 secs (10 minutes).
  376. # This value MUST not be changed for production purposes.
  377. #
  378. #channel-lifetime=600
  379. # Uncomment to set the permission lifetime.
  380. # Default to 300 secs (5 minutes).
  381. # In production this value MUST not be changed,
  382. # however it can be useful for test purposes.
  383. #
  384. #permission-lifetime=300
  385. # Certificate file.
  386. # Use an absolute path or path relative to the
  387. # configuration file.
  388. #
  389. #cert=/usr/local/etc/turn_server_cert.pem
  390. # Private key file.
  391. # Use an absolute path or path relative to the
  392. # configuration file.
  393. # Use PEM file format.
  394. #
  395. #pkey=/usr/local/etc/turn_server_pkey.pem
  396. # Private key file password, if it is in encoded format.
  397. # This option has no default value.
  398. #
  399. #pkey-pwd=...
  400. # Allowed OpenSSL cipher list for TLS/DTLS connections.
  401. # Default value is "DEFAULT".
  402. #
  403. #cipher-list="DEFAULT"
  404. # CA file in OpenSSL format.
  405. # Forces TURN server to verify the client SSL certificates.
  406. # By default it is not set: there is no default value and the client
  407. # certificate is not checked.
  408. #
  409. # Example:
  410. #CA-file=/etc/ssh/id_rsa.cert
  411. # Curve name for EC ciphers, if supported by OpenSSL
  412. # library (TLS and DTLS). The default value is prime256v1,
  413. # if pre-OpenSSL 1.0.2 is used. With OpenSSL 1.0.2+,
  414. # an optimal curve will be automatically calculated, if not defined
  415. # by this option.
  416. #
  417. #ec-curve-name=prime256v1
  418. # Use 566 bits predefined DH TLS key. Default size of the key is 1066.
  419. #
  420. #dh566
  421. # Use 2066 bits predefined DH TLS key. Default size of the key is 1066.
  422. #
  423. #dh2066
  424. # Use custom DH TLS key, stored in PEM format in the file.
  425. # Flags --dh566 and --dh2066 are ignored when the DH key is taken from a file.
  426. #
  427. #dh-file=<DH-PEM-file-name>
  428. # Flag to prevent stdout log messages.
  429. # By default, all log messages are going to both stdout and to
  430. # the configured log file. With this option everything will be
  431. # going to the configured log only (unless the log file itself is stdout).
  432. #
  433. #no-stdout-log
  434. # Option to set the log file name.
  435. # By default, the turnserver tries to open a log file in
  436. # /var/log, /var/tmp, /tmp and current directories directories
  437. # (which open operation succeeds first that file will be used).
  438. # With this option you can set the definite log file name.
  439. # The special names are "stdout" and "-" - they will force everything
  440. # to the stdout. Also, the "syslog" name will force everything to
  441. # the system log (syslog).
  442. # In the runtime, the logfile can be reset with the SIGHUP signal
  443. # to the turnserver process.
  444. #
  445. #log-file=/var/tmp/turn.log
  446. # Option to redirect all log output into system log (syslog).
  447. #
  448. #syslog
  449. # This flag means that no log file rollover will be used, and the log file
  450. # name will be constructed as-is, without PID and date appendage.
  451. # This option can be used, for example, together with the logrotate tool.
  452. #
  453. #simple-log
  454. # Option to set the "redirection" mode. The value of this option
  455. # will be the address of the alternate server for UDP & TCP service in form of
  456. # <ip>[:<port>]. The server will send this value in the attribute
  457. # ALTERNATE-SERVER, with error 300, on ALLOCATE request, to the client.
  458. # Client will receive only values with the same address family
  459. # as the client network endpoint address family.
  460. # See RFC 5389 and RFC 5766 for ALTERNATE-SERVER functionality description.
  461. # The client must use the obtained value for subsequent TURN communications.
  462. # If more than one --alternate-server options are provided, then the functionality
  463. # can be more accurately described as "load-balancing" than a mere "redirection".
  464. # If the port number is omitted, then the default port
  465. # number 3478 for the UDP/TCP protocols will be used.
  466. # Colon (:) characters in IPv6 addresses may conflict with the syntax of
  467. # the option. To alleviate this conflict, literal IPv6 addresses are enclosed
  468. # in square brackets in such resource identifiers, for example:
  469. # [2001:db8:85a3:8d3:1319:8a2e:370:7348]:3478 .
  470. # Multiple alternate servers can be set. They will be used in the
  471. # round-robin manner. All servers in the pool are considered of equal weight and
  472. # the load will be distributed equally. For example, if we have 4 alternate servers,
  473. # then each server will receive 25% of ALLOCATE requests. A alternate TURN server
  474. # address can be used more than one time with the alternate-server option, so this
  475. # can emulate "weighting" of the servers.
  476. #
  477. # Examples:
  478. #alternate-server=1.2.3.4:5678
  479. #alternate-server=11.22.33.44:56789
  480. #alternate-server=5.6.7.8
  481. #alternate-server=[2001:db8:85a3:8d3:1319:8a2e:370:7348]:3478
  482. # Option to set alternative server for TLS & DTLS services in form of
  483. # <ip>:<port>. If the port number is omitted, then the default port
  484. # number 5349 for the TLS/DTLS protocols will be used. See the previous
  485. # option for the functionality description.
  486. #
  487. # Examples:
  488. #tls-alternate-server=1.2.3.4:5678
  489. #tls-alternate-server=11.22.33.44:56789
  490. #tls-alternate-server=[2001:db8:85a3:8d3:1319:8a2e:370:7348]:3478
  491. # Option to suppress TURN functionality, only STUN requests will be processed.
  492. # Run as STUN server only, all TURN requests will be ignored.
  493. # By default, this option is NOT set.
  494. #
  495. #stun-only
  496. # Option to suppress STUN functionality, only TURN requests will be processed.
  497. # Run as TURN server only, all STUN requests will be ignored.
  498. # By default, this option is NOT set.
  499. #
  500. #no-stun
  501. # This is the timestamp/username separator symbol (character) in TURN REST API.
  502. # The default value is ':'.
  503. # rest-api-separator=:
  504. # Flag that can be used to disallow peers on the loopback addresses (127.x.x.x and ::1).
  505. # This is an extra security measure.
  506. #
  507. #no-loopback-peers
  508. # Flag that can be used to disallow peers on well-known broadcast addresses (224.0.0.0 and above, and FFXX:*).
  509. # This is an extra security measure.
  510. #
  511. #no-multicast-peers
  512. # Option to set the max time, in seconds, allowed for full allocation establishment.
  513. # Default is 60 seconds.
  514. #
  515. #max-allocate-timeout=60
  516. # Option to allow or ban specific ip addresses or ranges of ip addresses.
  517. # If an ip address is specified as both allowed and denied, then the ip address is
  518. # considered to be allowed. This is useful when you wish to ban a range of ip
  519. # addresses, except for a few specific ips within that range.
  520. #
  521. # This can be used when you do not want users of the turn server to be able to access
  522. # machines reachable by the turn server, but would otherwise be unreachable from the
  523. # internet (e.g. when the turn server is sitting behind a NAT)
  524. #
  525. # Examples:
  526. # denied-peer-ip=83.166.64.0-83.166.95.255
  527. # allowed-peer-ip=83.166.68.45
  528. # File name to store the pid of the process.
  529. # Default is /var/run/turnserver.pid (if superuser account is used) or
  530. # /var/tmp/turnserver.pid .
  531. #
  532. #pidfile="/var/run/turnserver.pid"
  533. # Require authentication of the STUN Binding request.
  534. # By default, the clients are allowed anonymous access to the STUN Binding functionality.
  535. #
  536. #secure-stun
  537. # Mobility with ICE (MICE) specs support.
  538. #
  539. #mobility
  540. # User name to run the process. After the initialization, the turnserver process
  541. # will make an attempt to change the current user ID to that user.
  542. #
  543. #proc-user=<user-name>
  544. # Group name to run the process. After the initialization, the turnserver process
  545. # will make an attempt to change the current group ID to that group.
  546. #
  547. #proc-group=<group-name>
  548. # Turn OFF the CLI support.
  549. # By default it is always ON.
  550. # See also options cli-ip and cli-port.
  551. #
  552. #no-cli
  553. #Local system IP address to be used for CLI server endpoint. Default value
  554. # is 127.0.0.1.
  555. #
  556. #cli-ip=127.0.0.1
  557. # CLI server port. Default is 5766.
  558. #
  559. #cli-port=5766
  560. # CLI access password. Default is empty (no password).
  561. # For the security reasons, it is recommended to use the encrypted
  562. # for of the password (see the -P command in the turnadmin utility).
  563. #
  564. # Secure form for password 'qwerty':
  565. #
  566. #cli-password=$5$79a316b350311570$81df9cfb9af7f5e5a76eada31e7097b663a0670f99a3c07ded3f1c8e59c5658a
  567. #
  568. # Or unsecure form for the same password:
  569. #
  570. #cli-password=qwerty
  571. # Server relay. NON-STANDARD AND DANGEROUS OPTION.
  572. # Only for those applications when we want to run
  573. # server applications on the relay endpoints.
  574. # This option eliminates the IP permissions check on
  575. # the packets incoming to the relay endpoints.
  576. #
  577. #server-relay
  578. # Maximum number of output sessions in ps CLI command.
  579. # This value can be changed on-the-fly in CLI. The default value is 256.
  580. #
  581. #cli-max-output-sessions
  582. # Set network engine type for the process (for internal purposes).
  583. #
  584. #ne=[1|2|3]
  585. # Do not allow an TLS/DTLS version of protocol
  586. #
  587. #no-tlsv1
  588. #no-tlsv1_1
  589. #no-tlsv1_2