Welcome! Log In Create A New Profile

Advanced

variable limit_conn?

Posted by anon 
variable limit_conn?
May 03, 2016 11:54PM
Hi,

I need to throttle traffic based on where the client is connecting from. For example, if client is 10.0.0.1, I want to limit_conn to 1; if client is 10.1.0.2, I want limit_conn to 5, ... I have a map that contains IP to # connections allowed. How can I enforce the limit_conn? lt doesn't allow me to use `limit_conn zone $num_conn`, seems to require a constant number.

Thanks!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 302
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready