From: Pablo Neira Ayuso <pablo@netfilter.org>
To: rodanber@gmail.com
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH] iptables: extensions: libxt_MARK: Add translation to nft
Date: Tue, 14 Jun 2016 19:14:16 +0200 [thread overview]
Message-ID: <20160614171416.GA2500@salvia> (raw)
In-Reply-To: <1465924342-2680-1-git-send-email-rodanber@gmail.com>
On Tue, Jun 14, 2016 at 07:12:22PM +0200, rodanber@gmail.com wrote:
> From: Roberto García <rodanber@gmail.com>
>
> Add translation for the MARK target to nftables.
>
> Examples:
>
> $ sudo iptables-translate -t mangle -A OUTPUT -j MARK --set-mark 64
>
> nft add rule ip mangle OUTPUT counter meta mark set 0x40
>
> $ sudo iptables-translate -t mangle -A OUTPUT -j MARK --set-xmark 0x40/0x32
>
> nft add rule ip mangle OUTPUT counter meta mark set mark xor 0x40 and 0x32
>
> $ sudo iptables-translate -t mangle -A OUTPUT -j MARK --or-mark 64
>
> nft add rule ip mangle OUTPUT counter meta mark set mark or 0x40
>
> $ sudo iptables-translate -t mangle -A OUTPUT -j MARK --and-mark 64
>
> nft add rule ip mangle OUTPUT counter meta mark set mark and 0x40
>
> $ sudo iptables-translate -t mangle -A OUTPUT -j MARK --xor-mark 64
>
> nft add rule ip mangle OUTPUT counter meta mark set mark xor 0x40
This one applies. Applied, thanks :)
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-06-14 17:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-14 17:12 [PATCH] iptables: extensions: libxt_MARK: Add translation to nft rodanber
2016-06-14 17:14 ` Pablo Neira Ayuso [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-06-04 12:42 rodanber
2016-06-06 8:37 ` Arturo Borrero Gonzalez
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=20160614171416.GA2500@salvia \
--to=pablo@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=rodanber@gmail.com \
/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).