doc: nft.8: Document lower priority limit for nat type chains
Phil Sutter
reviewerPATCH 1/1 doc: nft.8: Document lower priority limit for nat type chains
Users can't know the magic limit.
--- doc/nft.txt | 3 +++ 1 file changed, 3 insertions(+)
doc/nft.txt +3 -0
@@ -439,6 +439,9 @@ name which specifies the order in which chains with the same *hook* value are traversed. The ordering is ascending, i.e. lower priority values have precedence over higher ones. +With *nat* type chains, there's a lower excluding limit of -200 for *priority* +values, because conntrack hooks at this priority and NAT requires it. + Standard priority values can be replaced with easily memorizable names. Not all names make sense in every family with every hook (see the compatibility matrices below) but their numerical value can still be used for prioritizing chains.
Signature · 1 line
2.38.0
Pablo Neira Ayuso
maintainerQuoted 12 lines · Phil Sutter
Users can't know the magic limit.
Signed-off-by Phil Sutter <[email protected]>--- doc/nft.txt | 3 +++ 1 file changed, 3 insertions(+)doc/nft.txt +0
-0
doc/nft.txt name which specifies the order in which chains with the same *hook* value are · line 443
Quoted 5 lines
doc/nft.txt +2
-0@@ -439,6 +439,9 @@ name which specifies the order in which chains with the same *hook* value are traversed. The ordering is ascending, i.e. lower priority values have precedence over higher ones. +With *nat* type chains, there's a lower excluding limit of -200 for *priority* +values, because conntrack hooks at this priority and NAT requires it.
prerouting, output -200 NF_IP_PRI_CONNTRACK
this should only apply in these two hooks, it should be possible to relax this in input and postrouting in the kernel.
Quoted 7 lines
doc/nft.txt +1
-0+ Standard priority values can be replaced with easily memorizable names. Not all names make sense in every family with every hook (see the compatibility matrices below) but their numerical value can still be used for prioritizing chains.Signature · 1 line
2.38.0
Phil Sutter
reviewerQuoted 16 lines · Pablo Neira Ayuso
Quoted 15 lines · Phil Sutter
Users can't know the magic limit.
Signed-off-by Phil Sutter <[email protected]>--- doc/nft.txt | 3 +++ 1 file changed, 3 insertions(+)doc/nft.txt +0
-0@@ -439,6 +439,9 @@ name which specifies the order in which chains with the same *hook* value are traversed. The ordering is ascending, i.e. lower priority values have precedence over higher ones.
Quoted 7 lines
doc/nft.txt name which specifies the order in which chains with the same *hook* value are · line 443
Quoted 2 lines
doc/nft.txt +2
-0+With *nat* type chains, there's a lower excluding limit of -200 for *priority* +values, because conntrack hooks at this priority and NAT requires it.prerouting, output -200
NF_IP_PRI_CONNTRACKthis should only apply in these two hooks, it should be possible to relax this in input and postrouting in the kernel.
So far nobody has complained, right? Motivation for my patch came from a question in IRC, I don't think there was a real need for more priority "space" in nat type chains. So while we may relax the restriction, I don't see the motivation to do so. :)
Cheers, Phil
Pablo Neira Ayuso
maintainerQuoted 22 lines · Phil Sutter
Quoted 21 lines · Pablo Neira Ayuso
Quoted 12 lines · Phil Sutter
Users can't know the magic limit.
Signed-off-by Phil Sutter <[email protected]>--- doc/nft.txt | 3 +++ 1 file changed, 3 insertions(+)doc/nft.txt +0
-0doc/nft.txt name which specifies the order in which chains with the same *hook* value are · line 443
Quoted 5 lines
doc/nft.txt +2
-0@@ -439,6 +439,9 @@ name which specifies the order in which chains with the same *hook* value are traversed. The ordering is ascending, i.e. lower priority values have precedence over higher ones. +With *nat* type chains, there's a lower excluding limit of -200 for *priority* +values, because conntrack hooks at this priority and NAT requires it.prerouting, output -200
NF_IP_PRI_CONNTRACK
Quoted 7 lines
Quoted 2 lines
this should only apply in these two hooks, it should be possible to relax this in input and postrouting in the kernel.
So far nobody has complained, right? Motivation for my patch came from a question in IRC, I don't think there was a real need for more priority "space" in nat type chains. So while we may relax the restriction, I don't see the motivation to do so. :)
It is fine, this can be updated later. Please push it out because release is coming.
It should be also possible to warn user via error reporting from userspace.
Phil Sutter
reviewerQuoted 3 lines · Phil Sutter
Users can't know the magic limit.
Signed-off-by Phil Sutter <[email protected]>
Patch applied.