Skip to content

nftables: add zone support to ct statement

Florian Westphal netfilter-devel 1 version Applied

Status from this message: Applied, thanks Florian.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/9netfilter: nft_ct: add zone id get supportinclude/uapi/linux/netfilter/nf_tables.h net/netfilter/nft_ct.c+21 -31 reply
2/9netfilter: nft_ct: prepare for key-dependent error unwindnet/netfilter/nft_ct.c+15 -141 reply
3/9netfilter: nft_ct: add zone id set supportnet/netfilter/nft_ct.c+143 -11 reply
4/9src: ct: add zone supportinclude/linux/netfilter/nf_tables.h src/expr/ct.c+4 -11 reply
5/9src: add host byte order integer typeinclude/datatype.h src/datatype.c+12 -05 replies
6/9src: add conntrack zone supportdoc/nft.xml include/linux/netfilter/nf_tables.h src/ct.c +2 more+19 -50 replies
7/9ct: refactor print function so it can be re-used for ct statementsrc/ct.c+9 -40 replies
8/9src: support zone set statement with optional directioninclude/statement.h src/ct.c src/netlink_delinearize.c +2 more+31 -50 replies
9/9tests: add test entries for conntrack zonestests/py/any/ct.t tests/py/any/ct.t.payload+57 -00 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchPablo Neira Ayuso
1/9
2/9
3/9
4/9A-b
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH -next 0/9] nftables: add zone support to ct statement

This adds the ability to set the conntrack zone from nftables, i.e. native replacement for -j CT --zone $number.

See individual patches for details.
This will need more documentation and exposure of the builtin hook priorities (e.g. via defines?) so users can more easily see whats happening.

Pablo suggested to allow something like

hook prerouting prio $raw;
or even
hook prerouting prio $conntrack - 1;

instead of the 'awkward' use of the actual numbers used by the kernel ('priority -300' to hook at same priority as raw table).

However, this series doesn't contain any of that, so users will have to use priorities between -399 and -199 (i.e. after defrag and before conntrack pickup) to assign zones.