]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Document that limits apply to QUIC connections as well 17208/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 24 Mar 2026 10:24:50 +0000 (11:24 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 7 Apr 2026 11:18:50 +0000 (13:18 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist-settings-definitions.yml
pdns/dnsdistdist/docs/reference/tuning.rst

index 2919f524dc84bca9873a932053d580dec9ba8c35..0370b23028cc739c56851e19018c98bdcd2bd55d 100644 (file)
@@ -1598,7 +1598,7 @@ tcp_tuning:
       lua-name: "setMaxTCPConnectionRatePerClient"
       internal-field-name: "d_maxTCPConnectionsRatePerClient"
       runtime-configurable: false
-      description: "Set the maximum number of new TCP connections that a given client (see ``connections_mask_v4``, ``connections_mask_v6`` and ``connection_mask_v4_port`` to see how clients can be aggregated) can open, per second, over the last ``connection_rate_interval`` minutes. Clients exceeding this rate will not be able to open new TCP connections for ``ban_duration_for_exceeding_tcp_tls_rate`` seconds. See also ``max_tls_new_session_rate_per_client`` and ``max_tls_resumed_session_rate_per_client``"
+      description: "Set the maximum number of new TCP or QUIC connections that a given client (see ``connections_mask_v4``, ``connections_mask_v6`` and ``connection_mask_v4_port`` to see how clients can be aggregated) can open, per second, over the last ``connection_rate_interval`` minutes. Clients exceeding this rate will not be able to open new TCP connections for ``ban_duration_for_exceeding_tcp_tls_rate`` seconds. See also ``max_tls_new_session_rate_per_client`` and ``max_tls_resumed_session_rate_per_client``"
     - name: "connection_rate_interval"
       type: "u64"
       default: "5"
index 61ed91e6fa1d633c96f0de0f81d5cc4a3c9e5cba..257e43190b44e508354f6a5bbcf1450925e5adf6 100644 (file)
@@ -11,7 +11,10 @@ Tuning related functions
 
   .. versionadded:: 2.0.0
 
-  Set for how long, in seconds, a client (or range, see :func:`setTCPConnectionsMaskV4`, :func:`setTCPConnectionsMaskV6` and :func:`setTCPConnectionsMaskV4Port` to see how clients can be aggregated) will be prevented from opening a new TCP connection when it has exceeded :func:`setMaxTCPConnectionRatePerClient`, :func:`setMaxTLSNewSessionRatePerClient` or :func:`setMaxTLSResumedSessionRatePerClient`. Default is 10 seconds.
+  .. versionchanged:: 2.0.4
+    QUIC connections are now affected as well
+
+  Set for how long, in seconds, a client (or range, see :func:`setTCPConnectionsMaskV4`, :func:`setTCPConnectionsMaskV6` and :func:`setTCPConnectionsMaskV4Port` to see how clients can be aggregated) will be prevented from opening a new TCP or QUIC connection when it has exceeded :func:`setMaxTCPConnectionRatePerClient`, :func:`setMaxTLSNewSessionRatePerClient` or :func:`setMaxTLSResumedSessionRatePerClient`. Default is 10 seconds.
 
   :param int num: Duration of the ban in seconds
 
@@ -62,13 +65,19 @@ Tuning related functions
 
   .. versionadded:: 2.0.0
 
-  Set the maximum number of new TCP connections that a given client (or range, see :func:`setTCPConnectionsMaskV4`, :func:`setTCPConnectionsMaskV6` and :func:`setTCPConnectionsMaskV4Port` to see how clients can be aggregated) can open, per second, over the last :func:`setTCPConnectionRateInterval` minutes. Clients exceeding this rate will not be able to open new TCP connections for :func:`setBanDurationForExceedingTCPTLSRate` seconds. See also :func:`setMaxTLSNewSessionRatePerClient` and :func:`setMaxTLSResumedSessionRatePerClient`. 0 (the default) means unlimited.
+  .. versionchanged:: 2.0.4
+    QUIC connections are now affected as well
+
+  Set the maximum number of new TCP or QUIC connections that a given client (or range, see :func:`setTCPConnectionsMaskV4`, :func:`setTCPConnectionsMaskV6` and :func:`setTCPConnectionsMaskV4Port` to see how clients can be aggregated) can open, per second, over the last :func:`setTCPConnectionRateInterval` minutes. Clients exceeding this rate will not be able to open new TCP connections for :func:`setBanDurationForExceedingTCPTLSRate` seconds. See also :func:`setMaxTLSNewSessionRatePerClient` and :func:`setMaxTLSResumedSessionRatePerClient`. 0 (the default) means unlimited.
 
   :param int num: Number of new connections per second
 
 .. function:: setMaxTCPConnectionsPerClient(num)
 
-  Set the maximum number of TCP connections per client. 0 (the default) means unlimited.
+  .. versionchanged:: 2.0.4
+    QUIC connections are now affected as well
+
+  Set the maximum number of TCP or QUIC connections per client. 0 (the default) means unlimited.
 
   :param int num: