Skip to content

netfilter: add fib expression

Florian Westphal netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3nf_tables: add fib expressioninclude/net/netfilter/nft_fib.h include/uapi/linux/netfilter/nf_tables.h net/ipv4/netfilter/Kconfig +9 more+849 -01 reply
2/3expr: add fib expressioninclude/libnftnl/expr.h include/linux/netfilter/nf_tables.h src/Makefile.am +2 more+318 -00 replies
3/3src: add fib expressiondoc/nft.xml include/datatype.h include/expression.h +9 more+387 -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 various] netfilter: add fib expression

This adds the FIB expression to query fib for oif and route/address type.

This provides functionality of the xtables 'rpfilter' and 'addrtype' matches.

The '--local' option supported by the rpfilter match is not supported anymore, but it is possible to use extra rules (either checking for explicit saddr/daddr pairs) or the 'fib type' result to make packets coming from external source but with a locally configured address bypass 'fib oif' queries.

oif is supported in prerouting, type can be used in all hooks. The kernel validates that the combinations make sense (e.g., you cannot ask for iif in OUTPUT).

ipv4, ipv6 and inet families are supported at the moment.

Comments welcome.