Welcome! Log In Create A New Profile

Advanced

Re: using 2000+ ip prefixes in nginx geo module !!

June 20, 2014 12:56AM
I removed /24 on per your suggestion and also used different code for
override but the issue persists. Modified geo.conf :-

39.49.59.0/24 PK;
110.93.192.0/18 US;
117.20.16.0/20 TW;
119.63.128.0/20 TW;
202.163.104.6/32 ARY;
203.124.63.0/24 CM;
221.132.112.0/21 TW;

110.93.192.0/24 TW; is not added now.


On Fri, Jun 20, 2014 at 1:12 AM, Steve Wilson <lists-nginx@swsystem.co.uk>
wrote:

> These 2 overlap
>
> 110.93.192.0/24 TW;
> 110.93.192.0/18 TW;
>
> The /24 is within the /18. In this instance you want to remove the /24.
>
> It might be worth investigating if you've got any others that overlap. I
> think you can probably override with a different country code but using the
> same makes no sense.
>
> Steve.
>
>
> On 19/06/14 21:06, shahzaib shahzaib wrote:
>
> For testing purpose, i have added only few prefixes :-
>
> geo {
> default 0;
> include geo.conf;
> }
>
> geo.conf
>
> 39.49.59.0/24 PK;
> 110.93.192.0/24 TW;
> 110.93.192.0/18 TW;
> 117.20.16.0/20 TW;
> 119.63.128.0/20 TW;
> 202.163.104.6/32 ARY;
> 203.124.63.0/24 CM;
> 221.132.112.0/21 TW;
>
>
> Now, whenever some ip from the list send request, nginx reply with
> gateway timeout :-
>
> curl -I http://files.com/files/videos/2014/06/10/14023918368e3411-240.mp4
> HTTP/1.1 504 Gateway Time-out
> Server: nginx
> Date: Thu, 19 Jun 2014 19:59:50 GMT
> Content-Type: text/html
> Content-Length: 176
> Connection: keep-alive
>
> In order to resolve this error, i have to manually remove a network from
> the file which is 110.93.192.0/18 TW;
>
> What so suspicious with this prefix 110.93.192.0/18 TW ? Why it is
> causing to crash every other requests ?
>
>
>
> On Fri, Jun 20, 2014 at 12:07 AM, Jonathan Matthews <
> contact@jpluscplusm.com> wrote:
>
>> On 19 June 2014 19:59, shahzaib shahzaib <shahzaib.cb@gmail.com> wrote:
>> > We've added 2000+ ip prefixes in a file "geo.conf" included in nginx
>> vhost
>> > by using ngx-http_geo_module and received the following warning :-
>> >
>> > 2014/06/19 23:52:46 [warn] 1633#0: duplicate network "103.24.96.0/22",
>> > value: "tw", old value: "tw" in /usr/local/nginx/conf/geo.conf:40
>>
>> What makes you think that this error message is incorrect?
>> If it's correct and you have a duplicate entry, resolving the problem
>> should be pretty simple ...
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
>
>
> _______________________________________________
> nginx mailing listnginx@nginx.orghttp://mailman.nginx.org/mailman/listinfo/nginx
>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

using 2000+ ip prefixes in nginx geo module !!

shahzaib1232 June 19, 2014 03:00PM

Re: using 2000+ ip prefixes in nginx geo module !!

Jonathan Matthews June 19, 2014 03:08PM

Re: using 2000+ ip prefixes in nginx geo module !!

shahzaib1232 June 19, 2014 04:08PM

Re: using 2000+ ip prefixes in nginx geo module !!

Steve Wilson June 19, 2014 04:14PM

Re: using 2000+ ip prefixes in nginx geo module !!

shahzaib1232 June 20, 2014 12:56AM

Re: using 2000+ ip prefixes in nginx geo module !!

shahzaib1232 June 20, 2014 12:58AM

Re: using 2000+ ip prefixes in nginx geo module !!

shahzaib1232 June 20, 2014 01:06AM

Re: using 2000+ ip prefixes in nginx geo module !!

Maxim Dounin June 20, 2014 10:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 156
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