Menu

QS_SrvMaxConnPerIP and higher connections limit for specific addresses

Piotr
2018-01-31
2018-02-19
  • Piotr

    Piotr - 2018-01-31

    Hi, I use QS_SrvMaxConnPerIP in my configuration, but I would like to allow more connections to some IP addresses. I cannot use QS_SrvMaxConnExcludeIP for them, because I just need to use higher limit and this option allow to make unlimited connections. Any ideas how to do it? Thank you!

    Developers, thank you very much for this amazing module! :)

     
  • Pascal Buchbinder

    It's (currently) not possible by using mod_qos only as it features this single connection counter only. But if you are using mod_security as well, you could try configure one limit by using mod_qos's QS_SrvMaxConnPerIP directive and the other limit by using mod_security's SecConnReadStateLimit directive.

    something like this:

    QS_SrvMaxConnPerIP 20
    QS_SrvMaxConnExcludeIP 127.0.0.1
    SecConnReadStateLimit 30 "@ipMatch 127.0.0.1"
    
     
    • Pascal Buchbinder

      maybe mod_security even allows you to configure SecConnReadStateLimit multiple times with different thresholds for different IP addresses - I don't know but it might be worth trying it.

       
  • Piotr

    Piotr - 2018-02-19

    Thank you so much for this solution. It works not bad, but mod_security doesn't block connections, like mod_qos does. However, thank you for your answer and all updates. Mod_qos is my favourite Apache module ;)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.