Skip to content

Netfilter packet logging updates (v2)

Pablo Neira Ayuso netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9netfilter: kill ulog targetsinclude/uapi/linux/netfilter_bridge/Kbuild include/uapi/linux/netfilter_bridge/ebt_ulog.h include/uapi/linux/netfilter_ipv4/Kbuild +5 more+0 -10150 replies
2/9netfilter: nf_log: use an array of loggers instead of listinclude/net/netfilter/nf_log.h net/bridge/netfilter/ebt_log.c net/netfilter/nf_log.c +2 more+37 -260 replies
3/9netfilter: nf_log: move log buffering to core logginginclude/net/netfilter/nf_log.h include/net/netfilter/xt_log.h net/netfilter/nf_log.c +1 more+217 -2010 replies
4/9netfilter: log: split family specific code to nf_log_{ip,ip6,common}.c filesinclude/net/netfilter/nf_log.h net/ipv4/netfilter/Kconfig net/ipv4/netfilter/Makefile +8 more+1047 -8740 replies
5/9netfilter: log: nf_log_packet() as real unified interfaceinclude/net/netfilter/nf_log.h net/ipv4/netfilter/nf_log_ipv4.c net/ipv6/netfilter/nf_log_ipv6.c +3 more+73 -410 replies
6/9netfilter: add generic ARP packet loggernet/ipv4/netfilter/Kconfig net/ipv4/netfilter/Makefile net/ipv4/netfilter/nf_log_arp.c+155 -00 replies
7/9netfilter: bridge: add generic packet loggerinclude/net/netfilter/nf_log.h net/bridge/netfilter/Kconfig net/bridge/netfilter/Makefile +3 more+115 -430 replies
8/9netfilter: nft_log: request explicit logger when loading rulesnet/netfilter/nft_log.c+23 -10 replies
9/9netfilter: nft_log: complete logging supportinclude/uapi/linux/netfilter/nf_tables.h net/netfilter/nft_log.c+63 -172 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] Netfilter packet logging updates (v2)

Hi!

This is a second round of patches to update the Netfilter packet logging infrastructure [1] to finish the nft_log support for all the supported families: inet, ip, ip6, arp and bridge.

The main changes with regards to v1 are:

1) The patch [8/9] ("netfilter: add generic inet packet logger") has been replaced by ("netfilter: nft_log: request explicit logger when loading rules"). Basically, the inet logger is not really required since we don't see packets of NFPROTO_INET family type, but the real NFPROTO_IPV4 and NFPROTO_IPV6 types. The new patch just grabs the IPV4 and IPv6 loggers when you add a rule to the inet table that uses the log statement.

2) Fix missing RCU assignment/dereferencing in the original patch [2/9] ("netfilter: nf_log: use an array of loggers instead of list").

I'll let the patches remain on the table this week, if no concerns arise I'll push them to the nf-next tree.

Thanks.

[1] http://marc.info/?l=netfilter-devel&m=140353449907890&w=2

Pablo Neira Ayuso (9):
netfilter: kill ulog targets
netfilter: nf_log: use an array of loggers instead of list
netfilter: nf_log: move log buffering to core logging
netfilter: log: split family specific code to nf_log_{ip,ip6,common}.c files
netfilter: log: nf_log_packet() as real unified interface
netfilter: add generic ARP packet logger
netfilter: bridge: add generic packet logger
netfilter: nft_log: request explicit logger when loading rules
netfilter: nft_log: complete logging support

 include/net/netfilter/nf_log.h                 |   42 +-
 include/net/netfilter/xt_log.h                 |   54 --
 include/uapi/linux/netfilter/nf_tables.h       |    4 +
 include/uapi/linux/netfilter_bridge/Kbuild     |    1 -
 include/uapi/linux/netfilter_bridge/ebt_ulog.h |   38 -
 include/uapi/linux/netfilter_ipv4/Kbuild       |    1 -
 include/uapi/linux/netfilter_ipv4/ipt_ULOG.h   |   49 --
 net/bridge/netfilter/Kconfig                   |   19 +-
 net/bridge/netfilter/Makefile                  |    3 +
 net/bridge/netfilter/ebt_log.c                 |   47 +-
 net/bridge/netfilter/ebt_ulog.c                |  393 -----------
 net/bridge/netfilter/nf_log_bridge.c           |   96 +++
 net/ipv4/netfilter/Kconfig                     |   23 +-
 net/ipv4/netfilter/Makefile                    |    4 +
 net/ipv4/netfilter/ipt_ULOG.c                  |  498 -------------
 net/ipv4/netfilter/nf_log_arp.c                |  149 ++++
 net/ipv4/netfilter/nf_log_ipv4.c               |  385 +++++++++++
 net/ipv6/netfilter/Kconfig                     |    5 +
 net/ipv6/netfilter/Makefile                    |    3 +
 net/ipv6/netfilter/nf_log_ipv6.c               |  417 +++++++++++
 net/netfilter/Kconfig                          |    6 +
 net/netfilter/Makefile                         |    3 +
 net/netfilter/nf_log.c                         |  149 +++-
 net/netfilter/nf_log_common.c                  |  187 +++++
 net/netfilter/nfnetlink_log.c                  |    4 +
 net/netfilter/nft_log.c                        |   98 ++-
 net/netfilter/xt_LOG.c                         |  884 +-----------------------
 27 files changed, 1537 insertions(+), 2025 deletions(-)
 delete mode 100644 include/net/netfilter/xt_log.h
 delete mode 100644 include/uapi/linux/netfilter_bridge/ebt_ulog.h
 delete mode 100644 include/uapi/linux/netfilter_ipv4/ipt_ULOG.h
 delete mode 100644 net/bridge/netfilter/ebt_ulog.c
 create mode 100644 net/bridge/netfilter/nf_log_bridge.c
 delete mode 100644 net/ipv4/netfilter/ipt_ULOG.c
 create mode 100644 net/ipv4/netfilter/nf_log_arp.c
 create mode 100644 net/ipv4/netfilter/nf_log_ipv4.c
 create mode 100644 net/ipv6/netfilter/nf_log_ipv6.c
 create mode 100644 net/netfilter/nf_log_common.c
Signature · 1 line
1.7.10.4