summary refs log tree commit diff
path: root/latest/turn-howto.html
diff options
context:
space:
mode:
authorDMRobertson <DMRobertson@users.noreply.github.com>2022-11-22 12:22:40 +0000
committerDMRobertson <DMRobertson@users.noreply.github.com>2022-11-22 12:22:40 +0000
commit486019057a34015d994e861bc3e90c6b7c491e99 (patch)
tree47b4d27995d96d55f066e6965b42c2ec904b85bc /latest/turn-howto.html
parentdeploy: 640cb3c81c927535a18b85c49a1cc2d856d03c2e (diff)
downloadsynapse-486019057a34015d994e861bc3e90c6b7c491e99.tar.xz
deploy: ececb2d6cb272723f1f79a4710ee04b218307475
Diffstat (limited to 'latest/turn-howto.html')
-rw-r--r--latest/turn-howto.html217
1 files changed, 27 insertions, 190 deletions
diff --git a/latest/turn-howto.html b/latest/turn-howto.html
index 1709c38a2c..d387a50965 100644
--- a/latest/turn-howto.html
+++ b/latest/turn-howto.html
@@ -76,7 +76,7 @@
 
         <nav id="sidebar" class="sidebar" aria-label="Table of contents">
             <div class="sidebar-scrollbox">
-                <ol class="chapter"><li class="chapter-item expanded affix "><li class="part-title">Introduction</li><li class="chapter-item expanded "><a href="welcome_and_overview.html">Welcome and Overview</a></li><li class="chapter-item expanded affix "><li class="part-title">Setup</li><li class="chapter-item expanded "><a href="setup/installation.html">Installation</a></li><li class="chapter-item expanded "><a href="postgres.html">Using Postgres</a></li><li class="chapter-item expanded "><a href="reverse_proxy.html">Configuring a Reverse Proxy</a></li><li class="chapter-item expanded "><a href="setup/forward_proxy.html">Configuring a Forward/Outbound Proxy</a></li><li class="chapter-item expanded "><a href="turn-howto.html" class="active">Configuring a Turn Server</a></li><li class="chapter-item expanded "><a href="delegate.html">Delegation</a></li><li class="chapter-item expanded affix "><li class="part-title">Upgrading</li><li class="chapter-item expanded "><a href="upgrade.html">Upgrading between Synapse Versions</a></li><li class="chapter-item expanded affix "><li class="part-title">Usage</li><li class="chapter-item expanded "><a href="federate.html">Federation</a></li><li class="chapter-item expanded "><a href="usage/configuration/index.html">Configuration</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="usage/configuration/config_documentation.html">Configuration Manual</a></li><li class="chapter-item expanded "><a href="usage/configuration/homeserver_sample_config.html">Homeserver Sample Config File</a></li><li class="chapter-item expanded "><a href="usage/configuration/logging_sample_config.html">Logging Sample Config File</a></li><li class="chapter-item expanded "><a href="structured_logging.html">Structured Logging</a></li><li class="chapter-item expanded "><a href="templates.html">Templates</a></li><li class="chapter-item expanded "><a href="usage/configuration/user_authentication/index.html">User Authentication</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="usage/configuration/user_authentication/single_sign_on/index.html">Single-Sign On</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="openid.html">OpenID Connect</a></li><li class="chapter-item expanded "><a href="usage/configuration/user_authentication/single_sign_on/saml.html">SAML</a></li><li class="chapter-item expanded "><a href="usage/configuration/user_authentication/single_sign_on/cas.html">CAS</a></li><li class="chapter-item expanded "><a href="sso_mapping_providers.html">SSO Mapping Providers</a></li></ol></li><li class="chapter-item expanded "><a href="password_auth_providers.html">Password Auth Providers</a></li><li class="chapter-item expanded "><a href="jwt.html">JSON Web Tokens</a></li><li class="chapter-item expanded "><a href="usage/configuration/user_authentication/refresh_tokens.html">Refresh Tokens</a></li></ol></li><li class="chapter-item expanded "><a href="CAPTCHA_SETUP.html">Registration Captcha</a></li><li class="chapter-item expanded "><a href="application_services.html">Application Services</a></li><li class="chapter-item expanded "><a href="server_notices.html">Server Notices</a></li><li class="chapter-item expanded "><a href="consent_tracking.html">Consent Tracking</a></li><li class="chapter-item expanded "><a href="user_directory.html">User Directory</a></li><li class="chapter-item expanded "><a href="message_retention_policies.html">Message Retention Policies</a></li><li class="chapter-item expanded "><a href="modules/index.html">Pluggable Modules</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="modules/writing_a_module.html">Writing a module</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="modules/spam_checker_callbacks.html">Spam checker callbacks</a></li><li class="chapter-item expanded "><a href="modules/third_party_rules_callbacks.html">Third-party rules callbacks</a></li><li class="chapter-item expanded "><a href="modules/presence_router_callbacks.html">Presence router callbacks</a></li><li class="chapter-item expanded "><a href="modules/account_validity_callbacks.html">Account validity callbacks</a></li><li class="chapter-item expanded "><a href="modules/password_auth_provider_callbacks.html">Password auth provider callbacks</a></li><li class="chapter-item expanded "><a href="modules/background_update_controller_callbacks.html">Background update controller callbacks</a></li><li class="chapter-item expanded "><a href="modules/account_data_callbacks.html">Account data callbacks</a></li><li class="chapter-item expanded "><a href="modules/porting_legacy_module.html">Porting a legacy module to the new interface</a></li></ol></li></ol></li><li class="chapter-item expanded "><a href="workers.html">Workers</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="synctl_workers.html">Using synctl with Workers</a></li><li class="chapter-item expanded "><a href="systemd-with-workers/index.html">Systemd</a></li></ol></li></ol></li><li class="chapter-item expanded "><a href="usage/administration/index.html">Administration</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="usage/administration/admin_api/index.html">Admin API</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="admin_api/account_validity.html">Account Validity</a></li><li class="chapter-item expanded "><a href="usage/administration/admin_api/background_updates.html">Background Updates</a></li><li class="chapter-item expanded "><a href="admin_api/event_reports.html">Event Reports</a></li><li class="chapter-item expanded "><a href="admin_api/media_admin_api.html">Media</a></li><li class="chapter-item expanded "><a href="admin_api/purge_history_api.html">Purge History</a></li><li class="chapter-item expanded "><a href="admin_api/register_api.html">Register Users</a></li><li class="chapter-item expanded "><a href="usage/administration/admin_api/registration_tokens.html">Registration Tokens</a></li><li class="chapter-item expanded "><a href="admin_api/room_membership.html">Manipulate Room Membership</a></li><li class="chapter-item expanded "><a href="admin_api/rooms.html">Rooms</a></li><li class="chapter-item expanded "><a href="admin_api/server_notices.html">Server Notices</a></li><li class="chapter-item expanded "><a href="admin_api/statistics.html">Statistics</a></li><li class="chapter-item expanded "><a href="admin_api/user_admin_api.html">Users</a></li><li class="chapter-item expanded "><a href="admin_api/version_api.html">Server Version</a></li><li class="chapter-item expanded "><a href="usage/administration/admin_api/federation.html">Federation</a></li></ol></li><li class="chapter-item expanded "><a href="manhole.html">Manhole</a></li><li class="chapter-item expanded "><a href="metrics-howto.html">Monitoring</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="usage/administration/monitoring/reporting_homeserver_usage_statistics.html">Reporting Homeserver Usage Statistics</a></li></ol></li><li class="chapter-item expanded "><a href="usage/administration/monthly_active_users.html">Monthly Active Users</a></li><li class="chapter-item expanded "><a href="usage/administration/understanding_synapse_through_grafana_graphs.html">Understanding Synapse Through Grafana Graphs</a></li><li class="chapter-item expanded "><a href="usage/administration/useful_sql_for_admins.html">Useful SQL for Admins</a></li><li class="chapter-item expanded "><a href="usage/administration/database_maintenance_tools.html">Database Maintenance Tools</a></li><li class="chapter-item expanded "><a href="usage/administration/state_groups.html">State Groups</a></li><li class="chapter-item expanded "><a href="usage/administration/request_log.html">Request log format</a></li><li class="chapter-item expanded "><a href="usage/administration/admin_faq.html">Admin FAQ</a></li><li class="chapter-item expanded "><div>Scripts</div></li></ol></li><li class="chapter-item expanded "><li class="part-title">Development</li><li class="chapter-item expanded "><a href="development/contributing_guide.html">Contributing Guide</a></li><li class="chapter-item expanded "><a href="code_style.html">Code Style</a></li><li class="chapter-item expanded "><a href="development/reviews.html">Reviewing Code</a></li><li class="chapter-item expanded "><a href="development/releases.html">Release Cycle</a></li><li class="chapter-item expanded "><a href="development/git.html">Git Usage</a></li><li class="chapter-item expanded "><div>Testing</div></li><li><ol class="section"><li class="chapter-item expanded "><a href="development/demo.html">Demo scripts</a></li></ol></li><li class="chapter-item expanded "><a href="opentracing.html">OpenTracing</a></li><li class="chapter-item expanded "><a href="development/database_schema.html">Database Schemas</a></li><li class="chapter-item expanded "><a href="development/experimental_features.html">Experimental features</a></li><li class="chapter-item expanded "><a href="development/dependencies.html">Dependency management</a></li><li class="chapter-item expanded "><div>Synapse Architecture</div></li><li><ol class="section"><li class="chapter-item expanded "><a href="development/synapse_architecture/cancellation.html">Cancellation</a></li><li class="chapter-item expanded "><a href="log_contexts.html">Log Contexts</a></li><li class="chapter-item expanded "><a href="replication.html">Replication</a></li><li class="chapter-item expanded "><a href="tcp_replication.html">TCP Replication</a></li></ol></li><li class="chapter-item expanded "><a href="development/internal_documentation/index.html">Internal Documentation</a></li><li><ol class="section"><li class="chapter-item expanded "><div>Single Sign-On</div></li><li><ol class="section"><li class="chapter-item expanded "><a href="development/saml.html">SAML</a></li><li class="chapter-item expanded "><a href="development/cas.html">CAS</a></li></ol></li><li class="chapter-item expanded "><a href="development/room-dag-concepts.html">Room DAG concepts</a></li><li class="chapter-item expanded "><div>State Resolution</div></li><li><ol class="section"><li class="chapter-item expanded "><a href="auth_chain_difference_algorithm.html">The Auth Chain Difference Algorithm</a></li></ol></li><li class="chapter-item expanded "><a href="media_repository.html">Media Repository</a></li><li class="chapter-item expanded "><a href="room_and_user_statistics.html">Room and User Statistics</a></li></ol></li><li class="chapter-item expanded "><div>Scripts</div></li><li class="chapter-item expanded affix "><li class="part-title">Other</li><li class="chapter-item expanded "><a href="deprecation_policy.html">Dependency Deprecation Policy</a></li><li class="chapter-item expanded "><a href="other/running_synapse_on_single_board_computers.html">Running Synapse on a Single-Board Computer</a></li></ol>
+                <ol class="chapter"><li class="chapter-item expanded affix "><li class="part-title">Introduction</li><li class="chapter-item expanded "><a href="welcome_and_overview.html">Welcome and Overview</a></li><li class="chapter-item expanded affix "><li class="part-title">Setup</li><li class="chapter-item expanded "><a href="setup/installation.html">Installation</a></li><li class="chapter-item expanded "><a href="postgres.html">Using Postgres</a></li><li class="chapter-item expanded "><a href="reverse_proxy.html">Configuring a Reverse Proxy</a></li><li class="chapter-item expanded "><a href="setup/forward_proxy.html">Configuring a Forward/Outbound Proxy</a></li><li class="chapter-item expanded "><a href="turn-howto.html" class="active">Configuring a Turn Server</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="setup/turn/coturn.html">coturn TURN server</a></li><li class="chapter-item expanded "><a href="setup/turn/eturnal.html">eturnal TURN server</a></li></ol></li><li class="chapter-item expanded "><a href="delegate.html">Delegation</a></li><li class="chapter-item expanded affix "><li class="part-title">Upgrading</li><li class="chapter-item expanded "><a href="upgrade.html">Upgrading between Synapse Versions</a></li><li class="chapter-item expanded affix "><li class="part-title">Usage</li><li class="chapter-item expanded "><a href="federate.html">Federation</a></li><li class="chapter-item expanded "><a href="usage/configuration/index.html">Configuration</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="usage/configuration/config_documentation.html">Configuration Manual</a></li><li class="chapter-item expanded "><a href="usage/configuration/homeserver_sample_config.html">Homeserver Sample Config File</a></li><li class="chapter-item expanded "><a href="usage/configuration/logging_sample_config.html">Logging Sample Config File</a></li><li class="chapter-item expanded "><a href="structured_logging.html">Structured Logging</a></li><li class="chapter-item expanded "><a href="templates.html">Templates</a></li><li class="chapter-item expanded "><a href="usage/configuration/user_authentication/index.html">User Authentication</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="usage/configuration/user_authentication/single_sign_on/index.html">Single-Sign On</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="openid.html">OpenID Connect</a></li><li class="chapter-item expanded "><a href="usage/configuration/user_authentication/single_sign_on/saml.html">SAML</a></li><li class="chapter-item expanded "><a href="usage/configuration/user_authentication/single_sign_on/cas.html">CAS</a></li><li class="chapter-item expanded "><a href="sso_mapping_providers.html">SSO Mapping Providers</a></li></ol></li><li class="chapter-item expanded "><a href="password_auth_providers.html">Password Auth Providers</a></li><li class="chapter-item expanded "><a href="jwt.html">JSON Web Tokens</a></li><li class="chapter-item expanded "><a href="usage/configuration/user_authentication/refresh_tokens.html">Refresh Tokens</a></li></ol></li><li class="chapter-item expanded "><a href="CAPTCHA_SETUP.html">Registration Captcha</a></li><li class="chapter-item expanded "><a href="application_services.html">Application Services</a></li><li class="chapter-item expanded "><a href="server_notices.html">Server Notices</a></li><li class="chapter-item expanded "><a href="consent_tracking.html">Consent Tracking</a></li><li class="chapter-item expanded "><a href="user_directory.html">User Directory</a></li><li class="chapter-item expanded "><a href="message_retention_policies.html">Message Retention Policies</a></li><li class="chapter-item expanded "><a href="modules/index.html">Pluggable Modules</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="modules/writing_a_module.html">Writing a module</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="modules/spam_checker_callbacks.html">Spam checker callbacks</a></li><li class="chapter-item expanded "><a href="modules/third_party_rules_callbacks.html">Third-party rules callbacks</a></li><li class="chapter-item expanded "><a href="modules/presence_router_callbacks.html">Presence router callbacks</a></li><li class="chapter-item expanded "><a href="modules/account_validity_callbacks.html">Account validity callbacks</a></li><li class="chapter-item expanded "><a href="modules/password_auth_provider_callbacks.html">Password auth provider callbacks</a></li><li class="chapter-item expanded "><a href="modules/background_update_controller_callbacks.html">Background update controller callbacks</a></li><li class="chapter-item expanded "><a href="modules/account_data_callbacks.html">Account data callbacks</a></li><li class="chapter-item expanded "><a href="modules/porting_legacy_module.html">Porting a legacy module to the new interface</a></li></ol></li></ol></li><li class="chapter-item expanded "><a href="workers.html">Workers</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="synctl_workers.html">Using synctl with Workers</a></li><li class="chapter-item expanded "><a href="systemd-with-workers/index.html">Systemd</a></li></ol></li></ol></li><li class="chapter-item expanded "><a href="usage/administration/index.html">Administration</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="usage/administration/admin_api/index.html">Admin API</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="admin_api/account_validity.html">Account Validity</a></li><li class="chapter-item expanded "><a href="usage/administration/admin_api/background_updates.html">Background Updates</a></li><li class="chapter-item expanded "><a href="admin_api/event_reports.html">Event Reports</a></li><li class="chapter-item expanded "><a href="admin_api/media_admin_api.html">Media</a></li><li class="chapter-item expanded "><a href="admin_api/purge_history_api.html">Purge History</a></li><li class="chapter-item expanded "><a href="admin_api/register_api.html">Register Users</a></li><li class="chapter-item expanded "><a href="usage/administration/admin_api/registration_tokens.html">Registration Tokens</a></li><li class="chapter-item expanded "><a href="admin_api/room_membership.html">Manipulate Room Membership</a></li><li class="chapter-item expanded "><a href="admin_api/rooms.html">Rooms</a></li><li class="chapter-item expanded "><a href="admin_api/server_notices.html">Server Notices</a></li><li class="chapter-item expanded "><a href="admin_api/statistics.html">Statistics</a></li><li class="chapter-item expanded "><a href="admin_api/user_admin_api.html">Users</a></li><li class="chapter-item expanded "><a href="admin_api/version_api.html">Server Version</a></li><li class="chapter-item expanded "><a href="usage/administration/admin_api/federation.html">Federation</a></li></ol></li><li class="chapter-item expanded "><a href="manhole.html">Manhole</a></li><li class="chapter-item expanded "><a href="metrics-howto.html">Monitoring</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="usage/administration/monitoring/reporting_homeserver_usage_statistics.html">Reporting Homeserver Usage Statistics</a></li></ol></li><li class="chapter-item expanded "><a href="usage/administration/monthly_active_users.html">Monthly Active Users</a></li><li class="chapter-item expanded "><a href="usage/administration/understanding_synapse_through_grafana_graphs.html">Understanding Synapse Through Grafana Graphs</a></li><li class="chapter-item expanded "><a href="usage/administration/useful_sql_for_admins.html">Useful SQL for Admins</a></li><li class="chapter-item expanded "><a href="usage/administration/database_maintenance_tools.html">Database Maintenance Tools</a></li><li class="chapter-item expanded "><a href="usage/administration/state_groups.html">State Groups</a></li><li class="chapter-item expanded "><a href="usage/administration/request_log.html">Request log format</a></li><li class="chapter-item expanded "><a href="usage/administration/admin_faq.html">Admin FAQ</a></li><li class="chapter-item expanded "><div>Scripts</div></li></ol></li><li class="chapter-item expanded "><li class="part-title">Development</li><li class="chapter-item expanded "><a href="development/contributing_guide.html">Contributing Guide</a></li><li class="chapter-item expanded "><a href="code_style.html">Code Style</a></li><li class="chapter-item expanded "><a href="development/reviews.html">Reviewing Code</a></li><li class="chapter-item expanded "><a href="development/releases.html">Release Cycle</a></li><li class="chapter-item expanded "><a href="development/git.html">Git Usage</a></li><li class="chapter-item expanded "><div>Testing</div></li><li><ol class="section"><li class="chapter-item expanded "><a href="development/demo.html">Demo scripts</a></li></ol></li><li class="chapter-item expanded "><a href="opentracing.html">OpenTracing</a></li><li class="chapter-item expanded "><a href="development/database_schema.html">Database Schemas</a></li><li class="chapter-item expanded "><a href="development/experimental_features.html">Experimental features</a></li><li class="chapter-item expanded "><a href="development/dependencies.html">Dependency management</a></li><li class="chapter-item expanded "><div>Synapse Architecture</div></li><li><ol class="section"><li class="chapter-item expanded "><a href="development/synapse_architecture/cancellation.html">Cancellation</a></li><li class="chapter-item expanded "><a href="log_contexts.html">Log Contexts</a></li><li class="chapter-item expanded "><a href="replication.html">Replication</a></li><li class="chapter-item expanded "><a href="tcp_replication.html">TCP Replication</a></li></ol></li><li class="chapter-item expanded "><a href="development/internal_documentation/index.html">Internal Documentation</a></li><li><ol class="section"><li class="chapter-item expanded "><div>Single Sign-On</div></li><li><ol class="section"><li class="chapter-item expanded "><a href="development/saml.html">SAML</a></li><li class="chapter-item expanded "><a href="development/cas.html">CAS</a></li></ol></li><li class="chapter-item expanded "><a href="development/room-dag-concepts.html">Room DAG concepts</a></li><li class="chapter-item expanded "><div>State Resolution</div></li><li><ol class="section"><li class="chapter-item expanded "><a href="auth_chain_difference_algorithm.html">The Auth Chain Difference Algorithm</a></li></ol></li><li class="chapter-item expanded "><a href="media_repository.html">Media Repository</a></li><li class="chapter-item expanded "><a href="room_and_user_statistics.html">Room and User Statistics</a></li></ol></li><li class="chapter-item expanded "><div>Scripts</div></li><li class="chapter-item expanded affix "><li class="part-title">Other</li><li class="chapter-item expanded "><a href="deprecation_policy.html">Dependency Deprecation Policy</a></li><li class="chapter-item expanded "><a href="other/running_synapse_on_single_board_computers.html">Running Synapse on a Single-Board Computer</a></li></ol>
             </div>
             <div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
         </nav>
@@ -154,192 +154,23 @@ TURN.</p>
 allows the homeserver to generate credentials that are valid for use on the
 TURN server through the use of a secret shared between the homeserver and the
 TURN server.</p>
-<p>The following sections describe how to install <a href="https://github.com/coturn/coturn">coturn</a> (which implements the TURN REST API) and integrate it with synapse.</p>
+<p>This documentation provides two TURN server configuration examples:</p>
+<ul>
+<li><a href="setup/turn/coturn.html">coturn</a></li>
+<li><a href="setup/turn/eturnal.html">eturnal</a></li>
+</ul>
 <h2 id="requirements"><a class="header" href="#requirements">Requirements</a></h2>
-<p>For TURN relaying with <code>coturn</code> to work, it must be hosted on a server/endpoint with a public IP.</p>
+<p>For TURN relaying to work, the TURN service must be hosted on a server/endpoint with a public IP.</p>
 <p>Hosting TURN behind NAT requires port forwaring and for the NAT gateway to have a public IP.
 However, even with appropriate configuration, NAT is known to cause issues and to often not work.</p>
-<h2 id="coturn-setup"><a class="header" href="#coturn-setup"><code>coturn</code> setup</a></h2>
-<h3 id="initial-installation"><a class="header" href="#initial-installation">Initial installation</a></h3>
-<p>The TURN daemon <code>coturn</code> is available from a variety of sources such as native package managers, or installation from source.</p>
-<h4 id="debian-installation"><a class="header" href="#debian-installation">Debian installation</a></h4>
-<p>Just install the debian package:</p>
-<pre><code class="language-sh">apt install coturn
-</code></pre>
-<p>This will install and start a systemd service called <code>coturn</code>.</p>
-<h4 id="source-installation"><a class="header" href="#source-installation">Source installation</a></h4>
-<ol>
-<li>
-<p>Download the <a href="https://github.com/coturn/coturn/releases/latest">latest release</a> from github.  Unpack it and <code>cd</code> into the directory.</p>
-</li>
-<li>
-<p>Configure it:</p>
-<pre><code class="language-sh">./configure
-</code></pre>
-<p>You may need to install <code>libevent2</code>: if so, you should do so in
-the way recommended by your operating system. You can ignore
-warnings about lack of database support: a database is unnecessary
-for this purpose.</p>
-</li>
-<li>
-<p>Build and install it:</p>
-<pre><code class="language-sh">make
-make install
-</code></pre>
-</li>
-</ol>
-<h3 id="configuration"><a class="header" href="#configuration">Configuration</a></h3>
-<ol>
-<li>
-<p>Create or edit the config file in <code>/etc/turnserver.conf</code>. The relevant
-lines, with example values, are:</p>
-<pre><code>use-auth-secret
-static-auth-secret=[your secret key here]
-realm=turn.myserver.org
-</code></pre>
-<p>See <code>turnserver.conf</code> for explanations of the options. One way to generate
-the <code>static-auth-secret</code> is with <code>pwgen</code>:</p>
-<pre><code class="language-sh">pwgen -s 64 1
-</code></pre>
-<p>A <code>realm</code> must be specified, but its value is somewhat arbitrary. (It is
-sent to clients as part of the authentication flow.) It is conventional to
-set it to be your server name.</p>
-</li>
-<li>
-<p>You will most likely want to configure coturn to write logs somewhere. The
-easiest way is normally to send them to the syslog:</p>
-<pre><code class="language-sh">syslog
-</code></pre>
-<p>(in which case, the logs will be available via <code>journalctl -u coturn</code> on a
-systemd system). Alternatively, coturn can be configured to write to a
-logfile - check the example config file supplied with coturn.</p>
-</li>
-<li>
-<p>Consider your security settings. TURN lets users request a relay which will
-connect to arbitrary IP addresses and ports. The following configuration is
-suggested as a minimum starting point:</p>
-<pre><code># VoIP traffic is all UDP. There is no reason to let users connect to arbitrary TCP endpoints via the relay.
-no-tcp-relay
-
-# don't let the relay ever try to connect to private IP address ranges within your network (if any)
-# given the turn server is likely behind your firewall, remember to include any privileged public IPs too.
-denied-peer-ip=10.0.0.0-10.255.255.255
-denied-peer-ip=192.168.0.0-192.168.255.255
-denied-peer-ip=172.16.0.0-172.31.255.255
-
-# recommended additional local peers to block, to mitigate external access to internal services.
-# https://www.rtcsec.com/article/slack-webrtc-turn-compromise-and-bug-bounty/#how-to-fix-an-open-turn-relay-to-address-this-vulnerability
-no-multicast-peers
-denied-peer-ip=0.0.0.0-0.255.255.255
-denied-peer-ip=100.64.0.0-100.127.255.255
-denied-peer-ip=127.0.0.0-127.255.255.255
-denied-peer-ip=169.254.0.0-169.254.255.255
-denied-peer-ip=192.0.0.0-192.0.0.255
-denied-peer-ip=192.0.2.0-192.0.2.255
-denied-peer-ip=192.88.99.0-192.88.99.255
-denied-peer-ip=198.18.0.0-198.19.255.255
-denied-peer-ip=198.51.100.0-198.51.100.255
-denied-peer-ip=203.0.113.0-203.0.113.255
-denied-peer-ip=240.0.0.0-255.255.255.255
-
-# special case the turn server itself so that client-&gt;TURN-&gt;TURN-&gt;client flows work
-# this should be one of the turn server's listening IPs
-allowed-peer-ip=10.0.0.1
-
-# consider whether you want to limit the quota of relayed streams per user (or total) to avoid risk of DoS.
-user-quota=12 # 4 streams per video call, so 12 streams = 3 simultaneous relayed calls per user.
-total-quota=1200
-</code></pre>
-</li>
-<li>
-<p>Also consider supporting TLS/DTLS. To do this, add the following settings
-to <code>turnserver.conf</code>:</p>
-<pre><code># TLS certificates, including intermediate certs.
-# For Let's Encrypt certificates, use `fullchain.pem` here.
-cert=/path/to/fullchain.pem
-
-# TLS private key file
-pkey=/path/to/privkey.pem
-
-# Ensure the configuration lines that disable TLS/DTLS are commented-out or removed
-#no-tls
-#no-dtls
-</code></pre>
-<p>In this case, replace the <code>turn:</code> schemes in the <code>turn_uris</code> settings below
-with <code>turns:</code>.</p>
-<p>We recommend that you only try to set up TLS/DTLS once you have set up a
-basic installation and got it working.</p>
-<p>NB: If your TLS certificate was provided by Let's Encrypt, TLS/DTLS will
-not work with any Matrix client that uses Chromium's WebRTC library. This
-currently includes Element Android &amp; iOS; for more details, see their
-<a href="https://github.com/vector-im/element-android/issues/1533">respective</a>
-<a href="https://github.com/vector-im/element-ios/issues/2712">issues</a> as well as the underlying
-<a href="https://bugs.chromium.org/p/webrtc/issues/detail?id=11710">WebRTC issue</a>.
-Consider using a ZeroSSL certificate for your TURN server as a working alternative.</p>
-</li>
-<li>
-<p>Ensure your firewall allows traffic into the TURN server on the ports
-you've configured it to listen on (By default: 3478 and 5349 for TURN
-traffic (remember to allow both TCP and UDP traffic), and ports 49152-65535
-for the UDP relay.)</p>
-</li>
-<li>
-<p>If your TURN server is behind NAT, the NAT gateway must have an external,
-publicly-reachable IP address. You must configure coturn to advertise that
-address to connecting clients:</p>
-<pre><code>external-ip=EXTERNAL_NAT_IPv4_ADDRESS
-</code></pre>
-<p>You may optionally limit the TURN server to listen only on the local
-address that is mapped by NAT to the external address:</p>
-<pre><code>listening-ip=INTERNAL_TURNSERVER_IPv4_ADDRESS
-</code></pre>
-<p>If your NAT gateway is reachable over both IPv4 and IPv6, you may
-configure coturn to advertise each available address:</p>
-<pre><code>external-ip=EXTERNAL_NAT_IPv4_ADDRESS
-external-ip=EXTERNAL_NAT_IPv6_ADDRESS
-</code></pre>
-<p>When advertising an external IPv6 address, ensure that the firewall and
-network settings of the system running your TURN server are configured to
-accept IPv6 traffic, and that the TURN server is listening on the local
-IPv6 address that is mapped by NAT to the external IPv6 address.</p>
-</li>
-<li>
-<p>(Re)start the turn server:</p>
-<ul>
-<li>
-<p>If you used the Debian package (or have set up a systemd unit yourself):</p>
-<pre><code class="language-sh">systemctl restart coturn
-</code></pre>
-</li>
-<li>
-<p>If you installed from source:</p>
-<pre><code class="language-sh">bin/turnserver -o
-</code></pre>
-</li>
-</ul>
-</li>
-</ol>
+<p>Afterwards, the homeserver needs some further configuration.</p>
 <h2 id="synapse-setup"><a class="header" href="#synapse-setup">Synapse setup</a></h2>
 <p>Your homeserver configuration file needs the following extra keys:</p>
 <ol>
-<li>&quot;<code>turn_uris</code>&quot;: This needs to be a yaml list of public-facing URIs
-for your TURN server to be given out to your clients. Add separate
-entries for each transport your TURN server supports.</li>
-<li>&quot;<code>turn_shared_secret</code>&quot;: This is the secret shared between your
-homeserver and your TURN server, so you should set it to the same
-string you used in turnserver.conf.</li>
-<li>&quot;<code>turn_user_lifetime</code>&quot;: This is the amount of time credentials
-generated by your homeserver are valid for (in milliseconds).
-Shorter times offer less potential for abuse at the expense of
-increased traffic between web clients and your homeserver to
-refresh credentials. The TURN REST API specification recommends
-one day (86400000).</li>
-<li>&quot;<code>turn_allow_guests</code>&quot;: Whether to allow guest users to use the
-TURN server. This is enabled by default, as otherwise VoIP will
-not work reliably for guests. However, it does introduce a
-security risk as it lets guests connect to arbitrary endpoints
-without having gone through a CAPTCHA or similar to register a
-real account.</li>
+<li><a href="usage/configuration/config_documentation.html#turn_uris"><code>turn_uris</code></a></li>
+<li><a href="usage/configuration/config_documentation.html#turn_shared_secret"><code>turn_shared_secret</code></a></li>
+<li><a href="usage/configuration/config_documentation.html#turn_user_lifetime"><code>turn_user_lifetime</code></a></li>
+<li><a href="usage/configuration/config_documentation.html#turn_allow_guests"><code>turn_allow_guests</code></a></li>
 </ol>
 <p>As an example, here is the relevant section of the config file for <code>matrix.org</code>. The
 <code>turn_uris</code> are appropriate for TURN servers listening on the default ports, with no TLS.</p>
@@ -378,7 +209,7 @@ TURN ports (normally 3478 and 5349).</p>
 relay ports (49152-65535 by default).</p>
 </li>
 <li>
-<p>Try disabling <code>coturn</code>'s TLS/DTLS listeners and enable only its (unencrypted)
+<p>Try disabling TLS/DTLS listeners and enable only its (unencrypted)
 TCP/UDP listeners. (This will only leave signaling traffic unencrypted;
 voice &amp; video WebRTC traffic is always encrypted.)</p>
 </li>
@@ -409,9 +240,13 @@ for your TURN server and specify only an IPv4 address as your <code>external-ip<
 </ul>
 </li>
 <li>
-<p>Enable more verbose logging in coturn via the <code>verbose</code> setting:</p>
+<p>Enable more verbose logging, in <code>coturn</code> via the <code>verbose</code> setting:</p>
 <pre><code>verbose
 </code></pre>
+<p>or with <code>eturnal</code> with the shell command <code>eturnalctl loglevel debug</code> or in the configuration file (the service needs to <a href="https://eturnal.net/documentation/#Operation">reload</a> for it to become effective):</p>
+<pre><code class="language-yaml">    ## Logging configuration:
+        log_level: debug
+</code></pre>
 <p>... and then see if there are any clues in its logs.</p>
 </li>
 <li>
@@ -439,19 +274,21 @@ matrix client to your homeserver in your browser's network inspector. In
 the response you should see <code>username</code> and <code>password</code>. Or:</p>
 </li>
 <li>
-<p>Use the following shell commands:</p>
+<p>Use the following shell commands for <code>coturn</code>:</p>
 <pre><code class="language-sh">secret=staticAuthSecretHere
 
 u=$((`date +%s` + 3600)):test
 p=$(echo -n $u | openssl dgst -hmac $secret -sha1 -binary | base64)
 echo -e &quot;username: $u\npassword: $p&quot;
 </code></pre>
-<p>Or:</p>
+<p>or for <code>eturnal</code></p>
+<pre><code class="language-sh">eturnalctl credentials
+</code></pre>
 </li>
 <li>
-<p>Temporarily configure coturn to accept a static username/password. To do
-this, comment out <code>use-auth-secret</code> and <code>static-auth-secret</code> and add the
-following:</p>
+<p>Or (<strong>coturn only</strong>): Temporarily configure <code>coturn</code> to accept a static
+username/password. To do this, comment out <code>use-auth-secret</code> and
+<code>static-auth-secret</code> and add the following:</p>
 <pre><code>lt-cred-mech
 user=username:password
 </code></pre>
@@ -474,7 +311,7 @@ entry in the results.</p>
                             <a rel="prev" href="setup/forward_proxy.html" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
                                 <i class="fa fa-angle-left"></i>
                             </a>
-                            <a rel="next" href="delegate.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
+                            <a rel="next" href="setup/turn/coturn.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
                                 <i class="fa fa-angle-right"></i>
                             </a>
                         <div style="clear: both"></div>
@@ -486,7 +323,7 @@ entry in the results.</p>
                     <a rel="prev" href="setup/forward_proxy.html" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
                         <i class="fa fa-angle-left"></i>
                     </a>
-                    <a rel="next" href="delegate.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
+                    <a rel="next" href="setup/turn/coturn.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
                         <i class="fa fa-angle-right"></i>
                     </a>
             </nav>