From: Florian Westphal <fw@strlen.de>
To: louis.t42@caramail.com
Cc: netfilter@vger.kernel.org
Subject: Re: Nftables ct count over 2 counter continues to trigger with only 1 connection
Date: Fri, 24 Oct 2025 13:45:07 +0200 [thread overview]
Message-ID: <aPtmw-suGrj2iLC9@strlen.de> (raw)
In-Reply-To: <trinity-85c72a88-d762-46c3-be97-36f10e5d9796-1761173693813@3c-app-mailcom-bs12>
louis.t42@caramail.com <louis.t42@caramail.com> wrote:
> I have read the documentation and asked on Stack Exchange but am unable to find an answer to the following behavior.
>
> Given this table and chain where 123.123.123.123 is my own address:
>
> table ip mytable {
> chain mychain {
> type filter hook input priority filter; policy accept;
> ip saddr != 123.123.123.123 drop
> ip saddr 123.123.123.123 ct count over 2 counter
> }
> }
After looking at Fernandos analysis, does this work when you restrict
this to new packets, i.e.:
ct state new jump {
ip saddr != 123.123.123.123 drop
ip saddr 123.123.123.123 ct count over 2 counter
}
This is supposed to only ever add new connections and not re-add established
ones.
next prev parent reply other threads:[~2025-10-24 11:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-22 22:54 Nftables ct count over 2 counter continues to trigger with only 1 connection louis.t42
2025-10-23 11:42 ` Pablo Neira Ayuso
2025-10-23 14:00 ` Fernando Fernandez Mancera
2025-10-24 11:45 ` Florian Westphal [this message]
2025-10-27 13:54 ` louis.t42
2025-10-27 22:25 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aPtmw-suGrj2iLC9@strlen.de \
--to=fw@strlen.de \
--cc=louis.t42@caramail.com \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.