]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
doc: ct count should be restricted via new
authorFlorian Westphal <fw@strlen.de>
Thu, 9 Apr 2026 11:57:53 +0000 (13:57 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 9 Apr 2026 15:23:54 +0000 (17:23 +0200)
Not doing it will affect existing flows, which is likely not wanted.

Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
doc/payload-expression.txt

index 8b538968c84b52a1b1077c6996fc9f364dc2bbd7..817b7a3c76b1c4044df6f9f1b142f967b9b59488 100644 (file)
@@ -934,5 +934,5 @@ ct_id|
 .restrict the number of parallel connections to a server
 --------------------
 nft add set filter ssh_flood '{ type ipv4_addr; flags dynamic; }'
-nft add rule filter input tcp dport 22 add @ssh_flood '{ ip saddr ct count over 2 }' reject
+nft add rule filter input ct state new tcp dport 22 add @ssh_flood '{ ip saddr ct count over 2 }' reject
 --------------------