From: Florian Westphal <fw@strlen.de>
To: <netfilter-devel@vger.kernel.org>
Cc: kadlec@netfilter.org, Florian Westphal <fw@strlen.de>
Subject: [PATCH nf-next 0/4] netfilter: conntrack: ignore overly delayed tcp packets
Date: Thu, 10 Mar 2022 17:40:13 +0100 [thread overview]
Message-ID: <20220310164017.7317-1-fw@strlen.de> (raw)
If 'nf_conntrack_tcp_loose' is off (the default), tcp packets that are
outside of the current window are marked as INVALID.
nf/iptables rulesets often drop such packets via 'ct state invalid' or
similar checks.
For overly delayed acks, this can be a nuisance if such 'invalid' packets
are also logged.
Since they are not invalid in a strict sense, just ignore them, i.e.
conntrack won't extend timeout or change state so that they do not match
invalid state rules anymore.
This also avoids unwantend connection stalls in case conntrack considers
retransmission (of data that did not reach the peer) as too old.
Florian Westphal (4):
netfilter: conntrack: remove pr_debug callsites from tcp tracker
netfilter: conntrack: prepare tcp_in_window for tristate return value
netfilter: conntrack: ignore overly delayed tcp packets
netfilter: conntrack: remove unneeded indent level
net/netfilter/nf_conntrack_proto_tcp.c | 257 ++++++++++++-------------
1 file changed, 119 insertions(+), 138 deletions(-)
--
2.34.1
next reply other threads:[~2022-03-10 16:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-10 16:40 Florian Westphal [this message]
2022-03-10 16:40 ` [PATCH nf-next 1/4] netfilter: conntrack: remove pr_debug callsites from tcp tracker Florian Westphal
2022-03-10 16:40 ` [PATCH nf-next 2/4] netfilter: conntrack: prepare tcp_in_window for tristate return value Florian Westphal
2022-03-10 16:40 ` [PATCH nf-next 3/4] netfilter: conntrack: ignore overly delayed tcp packets Florian Westphal
2022-03-10 16:40 ` [PATCH nf-next 4/4] netfilter: conntrack: remove unneeded indent level Florian Westphal
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=20220310164017.7317-1-fw@strlen.de \
--to=fw@strlen.de \
--cc=kadlec@netfilter.org \
--cc=netfilter-devel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).