From nobody Thu Oct 10 12:37:20 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XPTmK1dNZz5Z089; Thu, 10 Oct 2024 12:37:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XPTmK0wT5z4GyS; Thu, 10 Oct 2024 12:37:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728563841; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ThTPNvH5+q3FTYaM5Of2qJLFF0tS3dNSRsZvurWFEsM=; b=J4OjHb3hesH2nZ3xEYxBhTLjmumR/wMBXGF/BU6iNmb5pGFDUMOEMBVtqugp+xFDz+8cWF cz7mGAy19HRWoD6JzI9py53O9MwRnbhzgZDJGLXINdiLDF35Vxb5A/Tet0JVaAmpzbbYuj 3T4/OKLzKCyEPuAq6lkZ49B7VNq6aUiy7irxRmNshumBICjybgmVmozIeI239AqGY19PS/ 166Uq+DsGkmUvNQKAa+WWaylE5huumcndYFfix/NAHa+c/ReVu8IitvcOo+4ZrG1VtMD0l EpTVNixY7NfN0ojjCserErjI0CA7i/ehm9Sl2OaJWeZjjRhNxYAUAmQkuAirgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728563841; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ThTPNvH5+q3FTYaM5Of2qJLFF0tS3dNSRsZvurWFEsM=; b=gyAoLOEp6ymckY4UB7ZTh3u/9LVPM8StCmVpWe1Rkv+/t+OF8aL7G7JZtMNdXtr5nZYgVw WflH/yjvOFZOWJSB/CAH7436Gp58Sw4H0MIH2LcpPMBxtvjILw+kZJT42ZaAzSANJ+mqEi MbCk2xEh+Hpr+Kb3V8mn36ZJ/RhJSJFpneJ6NfqGYjtdGCcJ3ca3ZR+1WlSNnhBvcYXWPh IqpXKmjji/7Qx0+q2i267DVSBHKzngG0OYOsdst5DjPfODQxIM5OzDmd91E6j7mkTJmjGU 8tuC92TfqvxJWVcodm7tE7Ys1ACjYhRDeLBWZZ5h2dEy3xL66Y+pxF8GoJqicw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728563841; a=rsa-sha256; cv=none; b=IN3zJafrvoPhRMXLxM50+mBlTj4ur9CuKzcIyY/l2oLmmMesCwYDTSG3tme3Ag2+BXQss0 9lGyt7U11fLcTes/VGvkIG2Hw8O0TZ9kSWyxb1hqt9mqg5h/uX6fLWUsb5Ur+eAKyRHkIU CSRXY7sRyJd7NJS3VqUIAf6NBb3QgSaxLKl+iy62V68BZpf5DN47yNfCq2dQOQ2gYQ9vYp lAlbgaQbg2Yh3O2AK6ImZCVMA4BIucOksVX23HP04F7qPdeUAzLlresMzW0ksQgbvW7kGG GbHvAHqZhXskwN5z/EizBDJhsUefVu3FYz+y6B+56OyXP5iIhiTs2yzEWbIvOA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XPTmK0XnxzyDW; Thu, 10 Oct 2024 12:37:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49ACbKAK006386; Thu, 10 Oct 2024 12:37:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49ACbKq5006383; Thu, 10 Oct 2024 12:37:20 GMT (envelope-from git) Date: Thu, 10 Oct 2024 12:37:20 GMT Message-Id: <202410101237.49ACbKq5006383@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: d01949e8a210 - main - pf.conf.5: sync documentation with code on the matter of max state limit behavior List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d01949e8a210c4531ed4172e344501b37ded729e Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=d01949e8a210c4531ed4172e344501b37ded729e commit d01949e8a210c4531ed4172e344501b37ded729e Author: Kristof Provost AuthorDate: 2024-10-02 06:38:59 +0000 Commit: Kristof Provost CommitDate: 2024-10-10 12:10:40 +0000 pf.conf.5: sync documentation with code on the matter of max state limit behavior When one of the state limits is reached, further packets that would create state are dropped, until existing states time out. Discussed with mcbride, ok henning, jmc Obtained from: OpenBSD, mikeb , 677ed08ce1 Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D46932 --- share/man/man5/pf.conf.5 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/share/man/man5/pf.conf.5 b/share/man/man5/pf.conf.5 index 9531f18e8858..2edc7b1fb280 100644 --- a/share/man/man5/pf.conf.5 +++ b/share/man/man5/pf.conf.5 @@ -27,7 +27,7 @@ .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd September 6, 2024 +.Dd October 2, 2024 .Dt PF.CONF 5 .Os .Sh NAME @@ -2432,7 +2432,7 @@ must be specified explicitly to apply options to a rule. .It Ar max Aq Ar number Limits the number of concurrent states the rule may create. When this limit is reached, further packets that would create -state will not match this rule until existing states time out. +state are dropped until existing states time out. .It Ar no-sync Prevent state changes for states created by this rule from appearing on the .Xr pfsync 4 @@ -2514,6 +2514,9 @@ Limit the rate of new connections over a time interval. The connection rate is an approximation calculated as a moving average. .El .Pp +When one of these limits is reached, further packets that would create +state are dropped until existing states time out. +.Pp Because the 3-way handshake ensures that the source address is not being spoofed, more aggressive action can be taken based on these limits. With the