Welcome! Log In Create A New Profile

Advanced

Any way to deal with clients breaking the limit zone

June 01, 2011 10:52AM
Just in case it is relevant I'll explain the setup. It is vbulletin site with apache serving php and nginx static content.
I have this in nginx.conf
limit_zone one $binary_remote_addr 10m;
and this in vhost config of the site in question:
limit_conn one 35;

I hope that is reasonable setting.
Haven't noticed any issues with regular traffic. But occasionally we get some ips breaking the zone limit, I am pretty sure it is not a regular visitor. And it was generating hundreds of lines in vhost-error_log:
limiting connections by zone "one", client: xx.xx......

So my question is if there is perhaps a way to stop that client after he repeats the limit breaking constantly for like 5 minutes, or X times or something like that.
Or at least to stop it generating the logs.
I ended up blocking that ip with firewall today, but I won't be there all the time to see it and it is gonna create a lot of junk lines in the log. It is not that big of an issue but I just thought it is worth a shot to see if there is a way around it.
Subject Author Posted

Any way to deal with clients breaking the limit zone

karabaja June 01, 2011 10:52AM

Re: Any way to deal with clients breaking the limit zone

Maxim Dounin June 02, 2011 05:38AM

Re: Any way to deal with clients breaking the limit zone

locojohn January 11, 2012 04:31PM

Re: Any way to deal with clients breaking the limit zone

Maxim Dounin January 12, 2012 11:12AM

Re: Any way to deal with clients breaking the limit zone

locojohn January 13, 2012 01:55AM

Re: Any way to deal with clients breaking the limit zone

locojohn January 13, 2012 01:57AM

Re: Any way to deal with clients breaking the limit zone

Maxim Dounin January 13, 2012 05:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 112
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready