Re: Exclude ip's from Nginx limit_req zone

2015-01-03 Thread ASTRAPI
Ok all done fixed ! Thanks :) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255697,255947#msg-255947 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Exclude ip's from Nginx limit_req zone

2014-12-29 Thread ASTRAPI
Anyone please? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255697,255857#msg-255857 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Exclude ip's from Nginx limit_req zone

2014-12-25 Thread ASTRAPI
My english is not so good and sometimes is hard for me sorry :( So as the goal is to limit globaly the maximum connections from one ip to 15 and to have 40 requests per ip and burst up to 80 requests per second it should be like this? Main nginx conf: http { limit_req_zone $limit zone=foo:1m r

Re: Exclude ip's from Nginx limit_req zone

2014-12-25 Thread Maxim Dounin
Hello! On Wed, Dec 24, 2014 at 02:36:50PM -0500, ASTRAPI wrote: > Thanks for your reply Maxim Dounin > > So something like this ? : > > Main nginx conf: > > http { > > geo $limited { > default 1; > 192.168.45.56/32 0; > 199.27.128.0/21 0; > 173.

Re: Exclude ip's from Nginx limit_req zone

2014-12-24 Thread ASTRAPI
Thanks for your reply Maxim Dounin So something like this ? : Main nginx conf: http { geo $limited { default 1; 192.168.45.56/32 0; 199.27.128.0/21 0; 173.245.48.0/20 0; 103.21.244.0/22 0; 103.22.200.0/22 0; 103.31.4.0/2

Re: Exclude ip's from Nginx limit_req zone

2014-12-24 Thread Maxim Dounin
Hello! On Wed, Dec 24, 2014 at 09:01:09AM -0500, ASTRAPI wrote: > Anyone please? An example of how to whitelist addresses from limit_req can be found in the mailing list archives, for example here: http://mailman.nginx.org/pipermail/nginx/2012-July/034790.html Documentation on directives used

Re: Exclude ip's from Nginx limit_req zone

2014-12-24 Thread ASTRAPI
Anyone please? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255697,255773#msg-255773 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Exclude ip's from Nginx limit_req zone

2014-12-21 Thread ASTRAPI
Thanks for your reply B.R Not very clear yet as my english is not good at all :( Can you please try to post: What i must add to main nginx config at: http { ? and what to add to the nginx domain config file at: server { ? Cloudflare ip's that i want to exclude: 199.27.128.0/21 173.245.48.

Re: Exclude ip's from Nginx limit_req zone

2014-12-21 Thread B.R.
I am highly suspicious about the content found at the address pointed by the link provided by mex. Unless I am mistaken, the variable filled by the geo module is not used anywhere else... thus I guess the limiting works OK, but the 'white-list' feature probably does not work, as it was expected/adv

Re: Exclude ip's from Nginx limit_req zone

2014-12-21 Thread ASTRAPI
Thanks for your replies but i am confused now :( Can anyone please try to post: What i must add to main nginx config at: http { ? and what to add to the nginx domain config file at: server {? Target is to have connections limit per ip 20 and requests limits per ip to 40 and reques

Re: Exclude ip's from Nginx limit_req zone

2014-12-21 Thread Francis Daly
On Sat, Dec 20, 2014 at 06:18:03PM -0500, ASTRAPI wrote: Hi there, > limit_conn_zone $binary_remote_addr zone=alpha:8m; > limit_req_zone $binary_remote_addr zone=delta:8m rate=40r/s; > limit_conn alpha 5; > limit_req zone=delta burst=80 nodelay; > Now i want to exclude Cloudflare ip's from this

Re: Exclude ip's from Nginx limit_req zone

2014-12-21 Thread ASTRAPI
@mex Yes it seems that it will help me :) But on the code he is not using limit_conn_zone at all My code: http{ limit_req_zone $binary_remote_addr zone=delta:8m rate=30r/s; limit_conn_zone $binary_remote_addr zone=alpha:8m; New code: http{ limit_req_zone $binary_remote_ad

Re: Exclude ip's from Nginx limit_req zone

2014-12-21 Thread Martin Frb
limit_conn_zone $binary_remote_addr zone=alpha:8m; limit_req_zone $binary_remote_addr zone=delta:8m rate=40r/s; Domain nginx conf: limit_conn alpha 5; limit_req zone=delta burst=80 nodelay; So a user can create only 5 connections per ip and can have 40 requests with a burst up to 80 connecti

Re: Exclude ip's from Nginx limit_req zone

2014-12-21 Thread mex
hi, does this link helps? > http://gadelkareem.com/2012/03/25/limit-requests-per-ip-on-nginx-using-httplimitzonemodule-and-httplimitreqmodule-except-whitelist/ cheers, mex Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255697,255703#msg-255703 __

Exclude ip's from Nginx limit_req zone

2014-12-20 Thread ASTRAPI
Hi I am using this code to limit connections from ip's : Main nginx config: limit_conn_zone $binary_remote_addr zone=alpha:8m; limit_req_zone $binary_remote_addr zone=delta:8m rate=40r/s; Domain nginx conf: limit_conn alpha 5; limit_req zone=delta burst=80 nodelay; So a user can create only