Connection Rate Limiting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 know there is -limit in iptables, but unless I don't clearly
understand the implementation this limit is matched against
the resource and not on a per source.  So, you have 5 source
IPs comming in with requests all of which effect the counters
global instead of each source having their own counter.

We have tried mod_throttle for apache...but that crashes quite
a bit as the tables grow.  Plus. I want to stop the attacks
before the apache level.

Any help on this would be greatly appreciated.

Thanks!

-Dan




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux