netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [nft PATCH] ct: add support for setting ct mark
Date: Thu, 13 Mar 2014 14:17:46 +0100	[thread overview]
Message-ID: <20140313131746.GA6346@localhost> (raw)
In-Reply-To: <20140312180319.5029.59536.stgit@nfdev.cica.es>

On Wed, Mar 12, 2014 at 07:03:19PM +0100, Arturo Borrero Gonzalez wrote:
> This patch adds the possibility to set ct keys using nft. Currently, the
> connection mark is supported. This functionality enables creating rules
> performing the same action as iptables -j CONNMARK --save-mark. For example:
> 
> table ip filter {
> 	chain postrouting {
> 		type filter hook postrouting priority 0;
> 		ip protocol icmp ip daddr 8.8.8.8 ct mark set meta mark
> 	}
> }
> 
> My patch is based on the original http://patchwork.ozlabs.org/patch/307677/
> by Kristian Evensen <kristian.evensen@gmail.com>.
> 
> I simply did a rebase and some testing. To test, I added rules like these:
>  counter meta mark set 1 counter
>  counter ct mark set mark counter
>  counter ct mark 1 counter
> 
> The last matching worked as expected, which means the second rule is also
> working as expected.

Applied, thanks for recovering this patch Arturo!

      parent reply	other threads:[~2014-03-13 13:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-12 18:03 [nft PATCH] ct: add support for setting ct mark Arturo Borrero Gonzalez
2014-03-12 21:36 ` Kristian Evensen
2014-03-13 13:17 ` 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=20140313131746.GA6346@localhost \
    --to=pablo@netfilter.org \
    --cc=arturo.borrero.glez@gmail.com \
    --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).