Skip to content

nf_tables support at ingress

Pablo Neira Ayuso netdev netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3netfilter: default CONFIG_NETFILTER_INGRESS to ynet/netfilter/Kconfig+1 -02 replies
2/3netfilter: nf_tables: allow to bind table to net_deviceinclude/net/netfilter/nf_tables.h include/uapi/linux/netfilter/nf_tables.h net/netfilter/nf_tables_api.c+51 -53 replies
3/3netfilter: nf_tables: add netdev table to filter from ingressinclude/net/netns/nftables.h net/netfilter/Kconfig net/netfilter/Makefile +1 more+190 -00 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/3 nf-next] nf_tables support at ingress

Hi,

This is the follow-up patchset to add nf_tables on top of the Netfilter ingress hook [1] now available in the net-next tree:

1) default CONFIG_NETFILTER_INGRESS to y for easier compile-testing of all options.

2) Allow to bind a table to net_device. This introduces the internal NFT_AF_NEEDS_DEV flag to perform a mandatory check for this binding. This patch is required by the next patch.

3) Add the 'netdev' table family, this new table allows you to create ingress filter basechains. This provides access to the existing nf_tables features from ingress.

After this, I'll prepare more patches to revisit our existing limit expression and to add support for the tee expression.

If no objections, I'll enqueue this patchset to the nf-next tree.

Thanks.

[1] https://lwn.net/Articles/644937/

Pablo Neira Ayuso (3):
netfilter: default CONFIG_NETFILTER_INGRESS to y
netfilter: nf_tables: allow to bind table to net_device
netfilter: nf_tables: add netdev table to filter from ingress

 include/net/netfilter/nf_tables.h        |    8 ++
 include/net/netns/nftables.h             |    1 +
 include/uapi/linux/netfilter/nf_tables.h |    2 +
 net/netfilter/Kconfig                    |    6 +
 net/netfilter/Makefile                   |    1 +
 net/netfilter/nf_tables_api.c            |   46 +++++++-
 net/netfilter/nf_tables_netdev.c         |  183 ++++++++++++++++++++++++++++++
 7 files changed, 242 insertions(+), 5 deletions(-)
 create mode 100644 net/netfilter/nf_tables_netdev.c
Signature · 1 line
1.7.10.4