From: Shyam Saini <mayhs11saini@gmail.com>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Netfilter Development Mailing list <netfilter-devel@vger.kernel.org>
Subject: Re: [Iptables Patch V3] extensions: libxt_cluster: Add translation to nft
Date: Tue, 16 Jan 2018 11:22:02 +0530 [thread overview]
Message-ID: <CAOfkYf7ELf-tbiOZTSvTTHR_p6PybdBZ6dmFz2eSZNtKPR-c7A@mail.gmail.com> (raw)
In-Reply-To: <20180116005953.zkoqd73jpz4jgm6i@salvia>
> Hi Shyam,
Hi Pablo,
> On Mon, Jan 15, 2018 at 11:29:28AM +0530, Shyam Saini wrote:
>> Add translation for cluster to nft
>>
>> $ sudo iptables-translate -A PREROUTING -t mangle -i eth1 -m cluster
>> --cluster-total-nodes 7 --cluster-local-node 5 --cluster-hash-seed
>> 0xdeadbeef -j MARK --set-mark 0xffff
>>
>> nft add rule ip mangle PREROUTING iifname eth1 jhash ct original saddr
>> mod 7 seed 0xdeadbeef eq 5 meta pkttype set host counter meta mark set
>> 0xffff
>>
>> $ sudo iptables-translate -A PREROUTING -t mangle -i eth1 -m cluster
>> --cluster-total-nodes 7 --cluster-local-nodemask 5 --cluster-hash-seed
>> 0xdeadbeef -j MARK --set-mark 0xffff
>>
>> nft add rule ip mangle PREROUTING iifname eth1 jhash ct original saddr
>> mod 7 seed 0xdeadbeef eq { 0, 2 } meta pkttype set host counter meta
>> mark set 0xffff
>
> Looks good, applied, thanks!
>
> Would you also send us a test for this?
>
> Have a look at extensions/*.txlate
>
> Thanks.
I will send the test for this.
Thanks,
Shyam
prev parent reply other threads:[~2018-01-16 5:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-15 5:59 [Iptables Patch V3] extensions: libxt_cluster: Add translation to nft Shyam Saini
2018-01-16 0:59 ` Pablo Neira Ayuso
2018-01-16 5:52 ` Shyam Saini [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=CAOfkYf7ELf-tbiOZTSvTTHR_p6PybdBZ6dmFz2eSZNtKPR-c7A@mail.gmail.com \
--to=mayhs11saini@gmail.com \
--cc=netfilter-devel@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).