netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dennis Jacobfeuerborn <dennisml@conversis.de>
To: Pablo Neira Ayuso <pablo@netfilter.org>, netfilter@vger.kernel.org
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Nftables HOWTO documentation updates
Date: Wed, 19 Feb 2014 16:13:37 +0100	[thread overview]
Message-ID: <5304CA21.9040309@conversis.de> (raw)
In-Reply-To: <20140218112543.GA4799@localhost>

On 18.02.2014 12:25, Pablo Neira Ayuso wrote:
> Hi,
>
> I have registered a subdomain for nftables that hosts the nftables
> user HOWTO, you can reach it via:
>
>          http://wiki.nftables.org

I checked out the HOWTO and it gives a really nice concise introduction 
to how nftables work. Good work!

After browsing through the pages I have two questions:

Is it possible to comment rules like in iptables? Comments in iptables 
made it really easy to manage rules on a logical level i.e. I could 
define rule "types" by adding a special comment like "TYPE:X" and then 
use that to grep for these rules to batch-remove them or retrieve the 
counter values. It would be nice to be able to tag rules like this.

How do I insert multiple rules? The insertion example show the addition 
of a single rule after a known handle but what if I want to add a second 
rule after that? As far as I can tell from the example the add rule 
command does not return the handle of the inserted rule so I have no 
idea where to insert the second rule. Even if the command returned the 
handle it would still require scripting to add multiple consecutive 
rules so there should be a way to specify to add a list of rules 
(atomically?) after a given handle.

Not sure if these features are not available or just not documented yet 
but I'm approaching this by thinking about the use-cases I encounter and 
looking at how I would implement these using nftables instead of iptables.

Regards,
   Dennis

  reply	other threads:[~2014-02-19 15:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-18 11:25 Nftables HOWTO documentation updates Pablo Neira Ayuso
2014-02-19 15:13 ` Dennis Jacobfeuerborn [this message]
2014-02-19 15:48   ` Arturo Borrero Gonzalez
2014-02-19 15:55   ` Pablo Neira Ayuso
2014-02-19 15:59     ` 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=5304CA21.9040309@conversis.de \
    --to=dennisml@conversis.de \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=netfilter@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;
as well as URLs for NNTP newsgroup(s).