Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Manish Jain" <manish.jain@globallogic.com>
To: netfilter@lists.netfilter.org
Subject: query regarding hashlimit using ipset src,dst tuple
Date: Sun, 15 Oct 2006 22:53:18 +0530	[thread overview]
Message-ID: <001001c6f07e$9c290f80$0201a8c0@synapse.com> (raw)
In-Reply-To: 

Hi,

I have a requirement as follows -

Say there are 2 source IPs - src1 and src2, and 2 destination IP - dst1,
dst2.
I need to limit src1->dst1 as well as src2-dst2 communication but want
unlimited src2->dst1 communication.
I have a ipset KNOWN, which contains src1, src2, dst1, dst2

Now i write a rule as follows -
iptables -A INPUT_CHAIN --match hashlimit --hashlimit 1000/s
--hashlimit-mode srcipdstip --hashlimit-name foo -m set --set KNOWN
src,dst -j ACCEPT

But this will limit the src2->dst1 communication as well, which I dont want.

1. Is there a way to add ip1,ip2 as a tuple in a ipset the way we can do for
ip1%port?
2. Is there a mode which can help me do this, using a single iptable rule as
above?
3. Is there a way to specify multiple ipsets in 1 iptable rule?

Thanks & Regards
Manish Jain



             reply	other threads:[~2006-10-15 17:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-15 17:23 Manish Jain [this message]
2006-10-16  7:00 ` query regarding hashlimit using ipset src,dst tuple Jozsef Kadlecsik
2006-10-16  8:54   ` Retesh
2006-10-16  9:19     ` Jozsef Kadlecsik
     [not found] <360933340.11695@mail.nankai.edu.cn>
     [not found] ` <4533285B.8040609@mail.nankai.edu.cn>
2006-10-16  6:36   ` Bo Yang
  -- strict thread matches above, loose matches on Subject: below --
2007-01-31 22:28 Ismaël BALLO
2007-02-02  8:18 ` Jozsef Kadlecsik

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='001001c6f07e$9c290f80$0201a8c0@synapse.com' \
    --to=manish.jain@globallogic.com \
    --cc=netfilter@lists.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