Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netfilter: nfnetlink_log: allow to attach conntrack

This patch enables to include the conntrack information together
with the packet that is sent to user-space via NFLOG, then a
user-space program can acquire NATed information by this NFULA_CT
attribute.

Including the conntrack information is optional, you can set it
via NFULNL_CFG_F_CONNTRACK flag with the NFULA_CFG_FLAGS attribute
like NFQUEUE.

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

authored by

Ken-ichirou MATSUZAWA and committed by
Pablo Neira Ayuso
a29a9a58 224a0597

+40 -9
+5 -4
net/netfilter/Kconfig
··· 363 363 If unsure, say `N'. 364 364 365 365 config NETFILTER_NETLINK_GLUE_CT 366 - bool "NFQUEUE integration with Connection Tracking" 366 + bool "NFQUEUE and NFLOG integration with Connection Tracking" 367 367 default n 368 - depends on NETFILTER_NETLINK_QUEUE && NF_CT_NETLINK 368 + depends on (NETFILTER_NETLINK_QUEUE || NETFILTER_NETLINK_LOG) && NF_CT_NETLINK 369 369 help 370 - If this option is enabled, NFQUEUE can include Connection Tracking 371 - information together with the packet is the enqueued via NFNETLINK. 370 + If this option is enabled, NFQUEUE and NFLOG can include 371 + Connection Tracking information together with the packet is 372 + the enqueued via NFNETLINK. 372 373 373 374 config NF_NAT 374 375 tristate