netfilter: add fib expression
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | nf_tables: add fib expressioninclude/ include/ net/ +9 more | +849 | 1 reply | |
| 2/3 | expr: add fib expressioninclude/ include/ src/ +2 more | +318 | 0 replies | |
| 3/3 | src: add fib expressiondoc/ include/ include/ +9 more | +387 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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.