Skip to content

Per network namespace netfilter chains

Eric W. Biederman netdev netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6netfilter: nf_queue: Don't recompute the hook_list headnet/netfilter/nf_queue.c+1 -10 replies
2/6netfilter: kill nf_hooks_activeinclude/linux/netfilter.h+3 -70 replies
3/6netfilter: Simply the tests for enabling and disabling the ingress queue hooknet/netfilter/core.c+6 -110 replies
4/6netfilter: Factor out the hook list selection from nf_register_hooknet/netfilter/core.c+18 -140 replies
5/6netfilter: Per network namespace netfilter hooks.include/linux/netfilter.h include/net/netns/netfilter.h net/netfilter/core.c+175 -252 replies
6/6netfilter: nftables: Only run the nftables chains in the proper netnsnet/netfilter/nf_tables_api.c net/netfilter/nf_tables_core.c+4 -70 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH -next 0/6] Per network namespace netfilter chains

By maintining a set of functions to register and unregister netfilter hooks both globally and per network namespace I have managed to write a compact patchset that maintain per network netfilter chains, and registers the nftables netfilter hooks per network namespace.

There are lots of other possible and desirable cleanups but this one is a core change needed to make the other changes independent small changes.

Eric W. Biederman (6):
netfilter: nf_queue: Don't recompute the hook_list head
netfilter: kill nf_hooks_active
netfilter: Simply the tests for enabling and disabling the ingress queue hook
netfilter: Factor out the hook list selection from nf_register_hook
netfilter: Per network namespace netfilter hooks.
netfilter: nftables: Only run the nftables chains in the proper netns

 include/linux/netfilter.h      |  23 +++--
 include/net/netns/netfilter.h  |   1 +
 net/netfilter/core.c           | 221 +++++++++++++++++++++++++++++++++--------
 net/netfilter/nf_queue.c       |   2 +-
 net/netfilter/nf_tables_api.c  |   6 +-
 net/netfilter/nf_tables_core.c |   5 -
 6 files changed, 200 insertions(+), 58 deletions(-)

Eric