All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH nf-next 0/4] netfilter: conntrack: ignore overly delayed tcp packets
@ 2022-03-10 16:40 Florian Westphal
  2022-03-10 16:40 ` [PATCH nf-next 1/4] netfilter: conntrack: remove pr_debug callsites from tcp tracker Florian Westphal
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Florian Westphal @ 2022-03-10 16:40 UTC (permalink / raw)
  To: netfilter-devel; +Cc: kadlec, Florian Westphal

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-03-10 16:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-10 16:40 [PATCH nf-next 0/4] netfilter: conntrack: ignore overly delayed tcp packets Florian Westphal
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

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.