Sfoglia il codice sorgente

Add no-multicast-peers to Coturn config by default

Part of a security hardening provoked by:
https://www.rtcsec.com/article/cve-2020-26262-bypass-of-coturns-access-control-protection/
pull/2423/head
Slavi Pantaleev 3 anni fa
parent
commit
4c9f96722f
2 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. +3
    -0
      roles/custom/matrix-coturn/defaults/main.yml
  2. +4
    -0
      roles/custom/matrix-coturn/templates/turnserver.conf.j2

+ 3
- 0
roles/custom/matrix-coturn/defaults/main.yml Vedi File

@@ -73,6 +73,9 @@ matrix_coturn_denied_peer_ips: []
matrix_coturn_user_quota: null matrix_coturn_user_quota: null
matrix_coturn_total_quota: null matrix_coturn_total_quota: null


# Controls whether `no-multicast-peers` is added to the configuration
matrix_coturn_no_multicast_peers_enabled: true

# To enable TLS, you need to provide paths to certificates. # To enable TLS, you need to provide paths to certificates.
# Paths defined in `matrix_coturn_tls_cert_path` and `matrix_coturn_tls_key_path` are in-container paths. # Paths defined in `matrix_coturn_tls_cert_path` and `matrix_coturn_tls_key_path` are in-container paths.
# Files on the host can be mounted into the container using `matrix_coturn_container_additional_volumes`. # Files on the host can be mounted into the container using `matrix_coturn_container_additional_volumes`.


+ 4
- 0
roles/custom/matrix-coturn/templates/turnserver.conf.j2 Vedi File

@@ -39,6 +39,10 @@ user-quota={{ matrix_coturn_user_quota }}
total-quota={{ matrix_coturn_total_quota }} total-quota={{ matrix_coturn_total_quota }}
{% endif %} {% endif %}


{% if matrix_coturn_no_multicast_peers_enabled %}
no-multicast-peers
{% endif %}

{% for ip_range in matrix_coturn_denied_peer_ips %} {% for ip_range in matrix_coturn_denied_peer_ips %}
denied-peer-ip={{ ip_range }} denied-peer-ip={{ ip_range }}
{% endfor %} {% endfor %}


Caricamento…
Annulla
Salva