Welcome!
Log In
Create A New Profile
Home
>
Mailing Lists
>
Nginx Mailing List - English
> Topic
Advanced
Limit IPv4/24 connections
Previous Message
Next Message
Forum List
Message List
New Topic
Print View
double
January 14, 2012 08:20AM
Registered: 13 years ago
Posts: 48
Hello,
I would like to limit the connections to 100 per 255.255.255.0
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
Markus
Reply
Quote
RSS
Subject
Author
Posted
Limit IPv4/24 connections
double
January 14, 2012 08:20AM
Re: Limit IPv4/24 connections
Valentin V. Bartenev
January 14, 2012 09:08AM
Re: Limit IPv4/24 connections
Valentin V. Bartenev
January 14, 2012 09:12AM
Sorry, only registered users may post in this forum.
Click here to login
Online Users
Guests: 209
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018