netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Patrick McHardy <kaber@trash.net>
Cc: Florian Westphal <fw@strlen.de>,
	netfilter-devel@vger.kernel.org, arturo.borrero.glez@gmail.com
Subject: Re: [PATCH nft v2 3/3] src: add xt compat support
Date: Fri, 10 Apr 2015 01:40:12 +0200	[thread overview]
Message-ID: <20150409234012.GA6169@salvia> (raw)
In-Reply-To: <20150409232341.GD13473@acer.localdomain>

On Fri, Apr 10, 2015 at 12:23:41AM +0100, Patrick McHardy wrote:
> On 10.04, Pablo Neira Ayuso wrote:
> > On Fri, Apr 10, 2015 at 12:36:22AM +0200, Florian Westphal wrote:
> > > Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> > >
> > > > > Whats the point of providing a 'native' replacement for an existing xtables
> > > > > target if we can just use the xtables version?
> > > > 
> > > > Have a look a hashlimit, multiport and all of our existing combo
> > > > match/targets.  They are a mess. We're now going towards a way more
> > > > flexible and generic (lego fashion) framework that will provide all
> > > > kind of combos without relying on this kind of Frankenstein
> > > > extensions.
> > > 
> > > Sure, but do you really want to add native expression equivalents for
> > > things like quota match, '-m time', '-j CLUSTERIP' ... ?
> > 
> > We don't want to rush to add a native expression that is going to map 1:1
> > to these matches/targets. We need time to think and to discuss how to
> > implement these in a nice (generic) fashion.
> > 
> > But if users need these features, they can migrate to nftables while
> > keeping those in their ruleset through compat.
> 
> But if they don't tell us what they need, how are we supposed to know?
> This removes it from decision making and our sight entirely.

We know we have to provide native replacements for what we have
already.

> > > And wrt. the existing combos, are you positive that your xlate tool
> > > will always be able to translate everything to nft native expressions?
> > >
> > > I'm specifically thinking about side-effects, e.g. -m recent which can
> > > also be manipulated externally to ruleset via /proc...
> > > 
> > > So i am afraid that 100% compat is not doable except by retaining all
> > > matches/targets (or at least some of them).
> > 
> > We'll provide a translation which means that the returns the closest
> > approximation to what they need.
> > 
> > That will not save them from reading the new documentation and
> > familiarizing with the new framework and tools. But we'll relieve the
> > pain of migration in some way.
> > 
> > As I said, the only way to get people moving forward is to provide
> > good reasons to learn the new tool and start using it.
> 
> I think we already have pretty good reasons, and they soon will get a lot
> stronger with concatenations and generic state keeping.

Agreed, the only way to get users moving forward is through features.

  reply	other threads:[~2015-04-09 23:36 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-09 16:55 [PATCH nft v2 1/3] include: cache ip_tables.h, ip6_tables.h, arp_tables.h and ebtables.h Pablo Neira Ayuso
2015-04-09 16:55 ` [PATCH nft v2 2/3] src: expose delinearize/linearize structures and stmt_error() Pablo Neira Ayuso
2015-04-09 16:55 ` [PATCH nft v2 3/3] src: add xt compat support Pablo Neira Ayuso
2015-04-09 20:36   ` Patrick McHardy
2015-04-09 20:51     ` Florian Westphal
2015-04-09 22:34       ` Pablo Neira Ayuso
2015-04-09 22:36         ` Florian Westphal
2015-04-09 22:56           ` Pablo Neira Ayuso
2015-04-09 23:23             ` Patrick McHardy
2015-04-09 23:40               ` Pablo Neira Ayuso [this message]
2015-04-09 23:45                 ` Patrick McHardy
2015-04-09 23:59                   ` Pablo Neira Ayuso
2015-04-10  0:05                     ` Patrick McHardy
2015-04-10  0:26                       ` Pablo Neira Ayuso
2015-04-10  0:33                         ` Patrick McHardy
2015-04-09 23:22           ` Patrick McHardy
2015-04-09 23:21         ` Patrick McHardy
2015-04-09 23:44           ` Pablo Neira Ayuso
2015-04-09 23:48             ` Patrick McHardy
2015-04-10  0:07               ` Pablo Neira Ayuso
2015-04-10  0:11                 ` Patrick McHardy
2015-04-10  0:36                   ` Pablo Neira Ayuso
2015-04-10  0:36                     ` Patrick McHardy
2015-04-10  1:00                       ` Pablo Neira Ayuso
2015-04-09 22:33     ` Pablo Neira Ayuso
2015-04-09 23:18       ` Patrick McHardy

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=20150409234012.GA6169@salvia \
    --to=pablo@netfilter.org \
    --cc=arturo.borrero.glez@gmail.com \
    --cc=fw@strlen.de \
    --cc=kaber@trash.net \
    --cc=netfilter-devel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).