From: Phil Sutter <phil@nwl.cc>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [nft PATCH] doc: nft.8: Document lower priority limit for nat type chains
Date: Thu, 9 Mar 2023 16:32:39 +0100 [thread overview]
Message-ID: <ZAn8F+e8qwLApaNM@orbyte.nwl.cc> (raw)
In-Reply-To: <ZAn57dCJmPkoBns/@salvia>
On Thu, Mar 09, 2023 at 04:23:25PM +0100, Pablo Neira Ayuso wrote:
> On Thu, Mar 09, 2023 at 02:52:46PM +0100, Phil Sutter wrote:
> > Users can't know the magic limit.
> >
> > Signed-off-by: Phil Sutter <phil@nwl.cc>
> > ---
> > doc/nft.txt | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/doc/nft.txt b/doc/nft.txt
> > index 7de4935b4b375..0d60c7520d31e 100644
> > --- a/doc/nft.txt
> > +++ b/doc/nft.txt
> > @@ -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.
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
next prev parent reply other threads:[~2023-03-09 15:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-09 13:52 [nft PATCH] doc: nft.8: Document lower priority limit for nat type chains Phil Sutter
2023-03-09 15:23 ` Pablo Neira Ayuso
2023-03-09 15:32 ` Phil Sutter [this message]
2023-03-09 17:34 ` Pablo Neira Ayuso
2023-03-10 11:46 ` Phil Sutter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZAn8F+e8qwLApaNM@orbyte.nwl.cc \
--to=phil@nwl.cc \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox