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: Thu, 2 Mar 2017 22:25:22 +0100 [thread overview]
Message-ID: <20170302212522.GA8035@salvia> (raw)
In-Reply-To: <20170302210129.GA19330@salvia>
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:
> > Hi,
> >
> > There is currently an open issue with nft in that ah expression doesn't
> > work for IPv6 since it creates a payload expression which doesn't find
> > the AH IPv6 extension header.
> >
> > There has been a discussion about this problem off-list in which two
> > alternative "solutions" were named, both involve checking the context
> > to find out whether one is trying to match an IPv4 or IPv6 packet and
> > then create either payload or exthdr expression. Though this solution is
> > not optimal, as in (at least) inet table the address family is not given
> > per se.
> >
> > I had the idea of creating a "real" solution to the problem which
> > consists of a payload/exthdr hybrid in kernel space searching for the
> > given header in different locations depending on the family of the
> > actual package being handled. Ideally this should reuse as much code as
> > possible, so maybe "just" create both expressions in user space and in
> > kernel space only branch between the two.
>
> 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.
>
> 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.
Sorry, I didn't mean to sound rude. But I would like to see more
usecases that would fit into such hybrid. I think we need more
usecases (not only AH) to justify this extra complexity that this
hybrid (or probably something else we can come up with) requires.
next prev parent reply other threads:[~2017-03-02 21:35 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 [this message]
2017-03-03 14:01 ` Phil Sutter
2017-03-03 17:37 ` Pablo Neira Ayuso
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=20170302212522.GA8035@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).