All of lore.kernel.org
 help / color / mirror / Atom feed
* Need example of ip rate limiting
@ 2003-07-21 18:08 Robert La Ferla
  2003-07-28 17:28 ` Robert La Ferla
  0 siblings, 1 reply; 3+ messages in thread
From: Robert La Ferla @ 2003-07-21 18:08 UTC (permalink / raw)
  To: netfilter

I would like to limit the number of HTTP (port 80) requests that any one 
IP address can make agaist an Apache web server per second or per 
minute.  I think iptables has such functionality.  Can someone give me 
an example of how to do it?  Is there a better way to do it or is 
iptables the best route?

Thanks!







^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Need example of ip rate limiting
  2003-07-21 18:08 Need example of ip rate limiting Robert La Ferla
@ 2003-07-28 17:28 ` Robert La Ferla
  0 siblings, 0 replies; 3+ messages in thread
From: Robert La Ferla @ 2003-07-28 17:28 UTC (permalink / raw)
  To: netfilter

Anyone have examples of iplimit to limit http DoS attacks?






^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Need example of ip rate limiting
@ 2003-07-28 17:36 Daniel Chemko
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Chemko @ 2003-07-28 17:36 UTC (permalink / raw)
  To: Robert La Ferla, netfilter

How about
iptables -A INPUT --destination <blah> -p tcp --dport 80 -m state NEW -m
limit --limit 3/s -j ACCEPT
iptables -A INPUT --destination <blah> -p tcp --dport 80 -m state NEW -j
DROP

Adjust the 3/s number higher or lower depending on how much traffic your
site gets per second on average and then put it a little bit higher.

-----Original Message-----
From: Robert La Ferla [mailto:robertlaferla@comcast.net] 
Sent: Monday, July 28, 2003 10:29 AM
To: netfilter@lists.netfilter.org
Subject: Re: Need example of ip rate limiting

Anyone have examples of iplimit to limit http DoS attacks?







^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-07-28 17:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-21 18:08 Need example of ip rate limiting Robert La Ferla
2003-07-28 17:28 ` Robert La Ferla
2003-07-28 17:36 Daniel Chemko

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.