Linux Netfilter discussions
 help / color / mirror / Atom feed
* Allowing closed connections time to drain before logging packets
@ 2024-09-25 17:09 Brian J. Murrell
  2024-09-25 18:18 ` Slavko
  2024-09-30  9:51 ` Pablo Neira Ayuso
  0 siblings, 2 replies; 5+ messages in thread
From: Brian J. Murrell @ 2024-09-25 17:09 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 812 bytes --]

I often see entries such as this being logged in my system log:

IN=ens3 OUT= MAC=[redacted] SRC=[redacted] DST=10.75.26.3 LEN=74 TOS=0x00 PREC=0x00 TTL=43 ID=3769 DF PROTO=TCP SPT=33944 DPT=22 WINDOW=229 RES=0x00 ACK PSH URGP=0

I suspect these are packets that come straggling in after a TCP
connection has been shut down.  Is there any way to have netfilter give
recently shut down TCP connections a bit of grace time before logging
packets that have been sent after they were shut down, just to reduce
the false-positive noise in my logs?

Same goes for UDP in fact:

IN=eth0.2 OUT= MAC=[redacted] SRC=[reacted, remote IP] DST=[redacted, my local IP] LEN=99 TOS=0x00 PREC=0x00 TTL=59 ID=0 DF PROTO=UDP SPT=443 DPT=37242 LEN=79 MARK=0x3f00

for, for example, QUIC connections.

Cheers,
b.


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2024-10-05 18:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-25 17:09 Allowing closed connections time to drain before logging packets Brian J. Murrell
2024-09-25 18:18 ` Slavko
2024-10-05 18:28   ` Brian J. Murrell
2024-09-30  9:51 ` Pablo Neira Ayuso
2024-10-05 18:14   ` Brian J. Murrell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox