Welcome! Log In Create A New Profile

Advanced

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

Maxim Dounin
June 02, 2011 05:38AM
Hello!

On Wed, Jun 01, 2011 at 10:52:03AM -0400, karabaja wrote:

> 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.

Usual aproach is to read logs with some script (fail2ban or
something) and block offenders on firewall by the script.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
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: 306
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