All of lore.kernel.org
 help / color / mirror / Atom feed
From: "robee" <mlody@elpec.com>
To: netfilter@lists.netfilter.org
Subject: Re: one rule to create per IP connlimits?
Date: Sat, 22 Apr 2006 12:10:35 +0200	[thread overview]
Message-ID: <006201c665f5$00205670$0e01050a@CyberAdmin> (raw)
In-Reply-To: 5cc9c8f90604211201keda9583yf0026180cbfe9a75@mail.gmail.com

----- Original Message ----- 
From: "rabbtux rabbtux" <rabbtux@gmail.com>
To: <netfilter@lists.netfilter.org>
Sent: Friday, April 21, 2006 9:01 PM
Subject: one rule to create per IP connlimits?

> All,
> Is there anyway I could create a rule that would create a tcp
> connection limit (say 20) for traffic from say 10.10.2.96/27 that
> would apply to each of the 32 IPs.  That is each address,
> 10.10.2.96-127 would be limited to 20 connections??  Or do I need to
> make up one iptables rule per address?
> It sure would be nice if I could do this with one rule per address
> block, as I have several hundred addresses to limit!
> Thanks in advance - marshall

maybe this way:

iptables -I FORWARD -p tcp --syn -s 10.10.2.96/27 -m 
connlimit --connlimit-above 20 -j REJECT

or

iptables -I FORWARD -p tcp --syn -m iprange --src-range 
10.10.2.96-10.10.2.127 -m connlimit --connlimit-above 20 -j REJECT



robee 



  parent reply	other threads:[~2006-04-22 10:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-21 19:01 one rule to create per IP connlimits? rabbtux rabbtux
2006-04-21 22:44 ` Toby DiPasquale
2006-04-22 10:10 ` robee [this message]
2006-04-22 13:15   ` Toby DiPasquale
2006-04-22 15:35     ` robee
2006-04-22 18:48       ` Toby DiPasquale
2006-04-24  1:41     ` Carl-Daniel Hailfinger
2006-04-24 13:20       ` Toby DiPasquale

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='006201c665f5$00205670$0e01050a@CyberAdmin' \
    --to=mlody@elpec.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.