httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomasz Chmielewski <man...@wpkg.org>
Subject Re: [users@httpd] allow only 20 concurrent connections per IP?
Date Wed, 01 Apr 2009 20:24:12 GMT
Evan Platt schrieb:
> At 12:59 PM 4/1/2009, you wrote:
>> What is the best way to limit concurrent connections per IP to, say, 20?
>>
>> I'm having some problems with "connection storms" caused by bots 
>> harvesting websites.
> 
> 
> mod_limitipconn.c  ?
> 
> http://dominia.org/djao/limitipconn2.html
> 
> Never tried it, but looks like it should work.

Or, just use iptables?

iptables -A INPUT -p tcp --syn --dport 80 -m connlimit --connlimit-above 
20 -j REJECT


Anyone had experiences with that?
What number of connections should I allow not to cut off legitimate 
users? 20? 30?


-- 
Tomasz Chmielewski
http://wpkg.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message