From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Phil Sutter <phil@nwl.cc>,
netfilter-devel@vger.kernel.org, Florian Westphal <fw@strlen.de>
Subject: Re: nft: ah expression doesn't work for IPv6
Date: Fri, 3 Mar 2017 18:37:58 +0100 [thread overview]
Message-ID: <20170303173758.GA1501@salvia> (raw)
In-Reply-To: <20170303140157.GB19896@orbyte.nwl.cc>
On Fri, Mar 03, 2017 at 03:01:57PM +0100, Phil Sutter wrote:
> On Thu, Mar 02, 2017 at 10:25:22PM +0100, Pablo Neira Ayuso wrote:
> > On Thu, Mar 02, 2017 at 10:01:29PM +0100, Pablo Neira Ayuso wrote:
> > > On Thu, Mar 02, 2017 at 08:56:52PM +0100, Phil Sutter wrote:
[...]
> > > If the problem is the inet chain, I would prefer we request explicit
> > > dependencies for ah so we generate the right bytecode depending on the
> > > family. Yes, I mean we would need two different rules for each case by
> > > now.
>
> Well, in bison there would have to be a common entrance point, which
> checks the scope and then generates either payload expr, exthdr expr or
> an error depending on what it is. Correct?
That's right.
> > > On top of that, do you have a real usecase having both AH traffic for
> > > IPv4 and IPv6 traffic? If you don't I would prefer you just fix what
> > > we have and focus on a different task, we have plenty of work to do
> > > ahead. We can hand over you more useful tasks.
>
> Not sure if I understand you correctly, but the use-case is matching on
> some AH header field in IPv6 traffic? But sure, if you think that's too
> exotic I could maybe just add some check somewhere which causes an error
> if the family is not specified or not IPv4 and ah expression is being
> used.
As you indicate the AH handling in nft is inconsistent, just like it
happens in iptables and ip6tables, look:
1) in iptables we can do -p ah, then use an extension to match AH
header from transport.
2) in ip6tables we cannot do -p ah. We use a specific ah extension for
IPv6 that uses ipv6_find_hdr().
This is a mess.
Please, develop your hybrid idea.
prev parent reply other threads:[~2017-03-03 18:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-02 19:56 nft: ah expression doesn't work for IPv6 Phil Sutter
2017-03-02 21:01 ` Pablo Neira Ayuso
2017-03-02 21:25 ` Pablo Neira Ayuso
2017-03-03 14:01 ` Phil Sutter
2017-03-03 17:37 ` Pablo Neira Ayuso [this message]
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=20170303173758.GA1501@salvia \
--to=pablo@netfilter.org \
--cc=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=phil@nwl.cc \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.