Skip to main content

Limit connection to httpd per ip.

Comments

9 comments

  • quietFinn
    Have you tried CONNLIMIT in CSF?
    0
  • Bidi
    Yes and is ussles......
    0
  • quizknows
    Try using modsecurity to limit number of read states per IP. [url=http://blog.spiderlabs.com/2011/07/advanced-topic-of-the-week-mitigating-slow-http-dos-attacks.html](Updated) ModSecurity Advanced Topic of the Week: Mitigating Slow HTTP DoS Attacks - SpiderLabs Anterior
    0
  • Bidi
    [quote="quizknows, post: 1515871">Try using modsecurity to limit number of read states per IP. [url=http://blog.spiderlabs.com/2011/07/advanced-topic-of-the-week-mitigating-slow-http-dos-attacks.html](Updated) ModSecurity Advanced Topic of the Week: Mitigating Slow HTTP DoS Attacks - SpiderLabs Anterior
    0
  • quizknows
    If you have ModSecurity selected in EasyApache, then you would just have to add this line to /usr/local/apache/conf/modsec2.user.conf SecReadStateLimit 25 You would have to restart apache for the setting to be active. This is just an example, you could try anywhere from 5 to 50. This example setting would limit each connecting IP to 25 simulatneous READ connections to the Apache server. I say this setting instead of SecConnReadStateLimit because the newest modsec build in EA is 2.7.5 which still uses SecReadStateLimit.
    0
  • ravi9
    You can also use [url=http://deflate.medialayer.com](D)DoS Deflate - deflate.medialayer.com plugin. With default configuration, IP will get blocked for 1 minutes after 150+ connections.
    0
  • Bidi
    Ravi i will try it, sorry guys for not answearing but my father has died in december and since then my mom she's loosing hear mind.
    0
  • xbaha
    [quote="quizknows, post: 1515991">If you have ModSecurity selected in EasyApache, then you would just have to add this line to /usr/local/apache/conf/modsec2.user.conf SecReadStateLimit 25 You would have to restart apache for the setting to be active. This is just an example, you could try anywhere from 5 to 50. This example setting would limit each connecting IP to 25 simulatneous READ connections to the Apache server. I say this setting instead of SecConnReadStateLimit because the newest modsec build in EA is 2.7.5 which still uses SecReadStateLimit.
    hi, sorry to jump in a year later, hope you still around... i was looking for such a solutions also, but i only want it to limit concurrent HTTP POST requests per ip per seconds, (if HTTP GET, then allow unlimited sim connections). is there away to do that? thanks.
    0
  • quizknows
    I'm not aware of a way to restrict the SecReadStateLimit to certain request methods, but I'll take a look at it.
    0

Please sign in to leave a comment.