From: Tomas Edwardsson <netfilter@tommi.org>
To: Daniel David Benson <dan@spoontail.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: Connection Rate Limiting
Date: Thu, 15 May 2003 19:15:47 +0000 [thread overview]
Message-ID: <20030515191547.GA13517@ok.is> (raw)
In-Reply-To: <Pine.GSO.4.44.0305150852190.7322-100000@dudester.spoontail.com>
On Thu, May 15, 2003 at 08:58:25AM -0700, Daniel David Benson wrote:
>
> Hopefully this one hasn't been answered before. We need to rate
> limit on a per source IP address to port 80. We are seeing certain
> web servers suffer from resource starvation under a DDOS attack.
> The solution to this problem is rate limit the number of
> connections any source IP address can make. Is this possible
> to do with iptables? I have searched just about everything and
> I can't seem to find anything. I know I can do traffic shaping
> with iproute2, but I don't think that is the direction I want
> to take.
I believe that a iplimit from the patch-o-matic would serve you in
this. A part of the description:
This adds CONFIG_IP_NF_MATCH_IPLIMIT match allows you to restrict the
number of parallel TCP connections to a server per client IP address
(or address block).
Examples:
# allow 2 telnet connections per client host
iptables -p tcp --syn --dport 23 -m iplimit --iplimit-above 2 -j REJECT
====
Tomas Edwardsson
HP Unix - Technical Support \ HP Unix Certified System Administrator
Red Hat Technical Support \ Red Hat Certified Engineer.
Opin Kerfi
prev parent reply other threads:[~2003-05-15 19:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-15 15:58 Connection Rate Limiting Daniel David Benson
2003-05-15 16:31 ` Frank Smith
2003-05-15 19:15 ` Tomas Edwardsson [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=20030515191547.GA13517@ok.is \
--to=netfilter@tommi.org \
--cc=dan@spoontail.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