All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH nf-next 0/2] netfilter: nf_tables: include conntrack state in trace messages
@ 2025-05-08 15:08 Florian Westphal
  2025-05-08 15:08 ` [PATCH nf-next 1/2] netfilter: conntrack: make nf_conntrack_id callable without a module dependency Florian Westphal
  2025-05-08 15:08 ` [PATCH nf-next 2/2] netfilter: nf_tables: add packets conntrack state to debug trace info Florian Westphal
  0 siblings, 2 replies; 6+ messages in thread
From: Florian Westphal @ 2025-05-08 15:08 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal

Add the minimal relevant info needed for userspace ("nftables monitor
trace") to provide the conntrack view of the packet:

- state (new, related, established)
- direction (original, reply)
- status (e.g., if connection is subject to dnat)
- id (allows to query ctnetlink for remaining conntrack state info)

Example:
trace id a62 inet filter PRE_RAW packet: iif "enp0s3" ether [..]
  [..]
trace id a62 inet filter PRE_MANGLE conntrack: ct direction original ct state new ct id 32
trace id a62 inet filter PRE_MANGLE packet: [..]
 [..]
trace id a62 inet filter IN conntrack: ct direction original ct state new ct status dnat-done ct id 32
 [..]

First patch is a needed prerequisite to avoid a module dependency.
Second patch adds the needed info.

Patches for libnftnl and nftables will follow shortly.

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

end of thread, other threads:[~2025-05-21 13:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-08 15:08 [PATCH nf-next 0/2] netfilter: nf_tables: include conntrack state in trace messages Florian Westphal
2025-05-08 15:08 ` [PATCH nf-next 1/2] netfilter: conntrack: make nf_conntrack_id callable without a module dependency Florian Westphal
2025-05-08 15:08 ` [PATCH nf-next 2/2] netfilter: nf_tables: add packets conntrack state to debug trace info Florian Westphal
2025-05-21  9:35   ` Pablo Neira Ayuso
2025-05-21 11:26     ` Florian Westphal
2025-05-21 13:52       ` Pablo Neira Ayuso

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.