Limit IPv4/24 connections

double nginx-forum at
Sat Jan 14 13:27:53 UTC 2012


I would like to limit the connections to 100 per
Is there a chance e.g. to zero the last byte of "$binary_remote_addr"?

Something like:
set $remote_addr_24 "/$remote_addr/\.[0-9]*$/.0/"
limit_zone connectiontrack $remote_addr_24  16m;
limit_conn connectiontrack 100;

Thanks a lot

Posted at Nginx Forum:,221225,221225#msg-221225

More information about the nginx mailing list