netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: shyam saini <mayhs11saini@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [Iptables PATCH] extensions: Rename 'flow table' keyword to meter
Date: Mon, 29 Jan 2018 15:25:18 +0100	[thread overview]
Message-ID: <20180129142518.tsdedlbslobevj6g@salvia> (raw)
In-Reply-To: <1516992076-10321-1-git-send-email-mayhs11saini@gmail.com>

On Sat, Jan 27, 2018 at 12:11:16AM +0530, shyam saini wrote:
> After nft v0.8.1 "flow table" is renamed as meter.
> This should reflect in iptables to nftables translation.
> 
> Before this patch:
> $ iptables-translate -A INPUT -m tcp -p tcp --dport 80 -m hashlimit
> --hashlimit-above 200/sec --hashlimit-mode srcip,dstport
> --hashlimit-name http1 -j DROP
> 
> nft add rule ip filter INPUT tcp dport 80 flow table http1 { tcp dport .
> ip saddr limit rate over 200/second } counter drop
> 
> After this patch:
> $ iptables-translate -A INPUT -m tcp -p tcp --dport 80 -m hashlimit
> --hashlimit-upto 200 --hashlimit-mode srcip --hashlimit-name http3
> --hashlimit-srcmask 24 -j DROP
> 
> nft add rule ip filter INPUT tcp dport 80 meter http3 { ip saddr and
> 255.255.255.0 limit rate 200/second } counter drop

Applied, thanks Shyam.

      reply	other threads:[~2018-01-29 14:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-26 18:41 [Iptables PATCH] extensions: Rename 'flow table' keyword to meter shyam saini
2018-01-29 14:25 ` 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=20180129142518.tsdedlbslobevj6g@salvia \
    --to=pablo@netfilter.org \
    --cc=mayhs11saini@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).