using 2000+ ip prefixes in nginx geo module !!

Maxim Dounin mdounin at
Fri Jun 20 14:11:52 UTC 2014


On Thu, Jun 19, 2014 at 09:12:04PM +0100, Steve Wilson wrote:

> These 2 overlap
> <> TW;
> <> 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.

For nginx, overlapping of CIDR blocks doesn't matter - it's 
correct and expected use case.  It may appear, e.g., if a more 
specific block has some additional properties in the original 
data, or if some intermediate block was present at some point, but 
later was removed.

Warning messages will only appear if exactly the same block is 
already present.  That is, the following will produce a warning:   ZZ;   ZZ;

But this will be fine:   ZZ;  ZZ;

Note well that the warning messages are just warning messages.  
Configuration is handled fine, duplicate blocks will be simply 
ignored.  The problem of the original question author is likely 
completely unrelated.

Maxim Dounin

More information about the nginx mailing list