Netfilter egress hook
Get series with b4
b4 am [email protected]Versions newest first
- v5 Latest6 patches 15 repliesIn review
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | netfilter: Rename ingress hook include fileinclude/ net/ | +1 | 0 replies | |
| 2/6 | netfilter: Generalize ingress hook include fileinclude/ net/ | +12 | 0 replies | |
| 3/6 | netfilter: nf_tables: move netdev ingress filter chain to nf_tables_netdev.cnet/ net/ net/ +2 more | +154 | 0 replies | |
| 4/6 | netfilter: Introduce egress hookinclude/ include/ include/ +3 more | +105 | 0 replies | |
| 5/6 | af_packet: Introduce egress hooknet/ | +35 | 0 replies | |
| 6/6 | netfilter: nf_tables: add egress supportnet/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [PATCH nf-next v5 0/6] Netfilter egress hook
Hi,
This patchset v5 that re-adds the Netfilter egress:
1) Rename linux/netfilter_ingress.h to linux/netfilter_netdev.h from Lukas Wunner.
2) Generalize ingress hook file to accomodate egress support, from Lukas Wunner.
3) Modularize Netfilter ingress hook into nf_tables_netdev: Daniel Borkmann is requesting for a mechanism to allow to blacklist Netfilter, this allows users to blacklist this new module that includes ingress chain and the new egress chain for the netdev family. There is no other in-tree user of the ingress and egress hooks than this which might interfer with his matter.
4) Place the egress hook again before the tc egress hook as requested by Daniel Borkmann. Patch to add egress hook from Lukas Wunner. The Netfilter egress hook remains behind the static key, if unused performance degradation is negligible.
5) Add netfilter egress handling to af_packet.
Arguably, distributors might decide to compile nf_tables_netdev built-in. Traditionally, distributors have compiled their kernels using the default configuration that Netfilter Kconfig provides (ie. use modules whenever possible). In any case, I consider that distributor policy is out of scope in this discussion, providing a mechanism to allow Daniel to prevent Netfilter ingress and egress chains to be loaded should be sufficient IMHO.
Joint work with Lukas Wunner.
Please review, thanks.
Lukas Wunner (3):
netfilter: Rename ingress hook include file
netfilter: Generalize ingress hook include file
netfilter: Introduce egress hook
Pablo Neira Ayuso (3):
netfilter: nf_tables: move netdev ingress filter chain to nf_tables_netdev.c
af_packet: Introduce egress hook
netfilter: nf_tables: add egress support
include/linux/netdevice.h | 4 + include/linux/netfilter_ingress.h | 58 ------------ include/linux/netfilter_netdev.h | 112 ++++++++++++++++++++++ include/uapi/linux/netfilter.h | 1 + net/core/dev.c | 15 ++- net/netfilter/Kconfig | 10 +- net/netfilter/Makefile | 1 + net/netfilter/core.c | 34 ++++++- net/netfilter/nf_tables_api.c | 7 +- net/netfilter/nf_tables_netdev.c | 150 ++++++++++++++++++++++++++++++ net/netfilter/nft_chain_filter.c | 143 ---------------------------- net/packet/af_packet.c | 35 +++++++ 12 files changed, 358 insertions(+), 212 deletions(-) delete mode 100644 include/linux/netfilter_ingress.h create mode 100644 include/linux/netfilter_netdev.h create mode 100644 net/netfilter/nf_tables_netdev.c
Signature · 1 line
2.30.2