using 2000+ ip prefixes in nginx geo module !!
mdounin at mdounin.ru
Fri Jun 20 14:11:52 UTC 2014
On Thu, Jun 19, 2014 at 09:12:04PM +0100, Steve Wilson wrote:
> These 2 overlap
> 126.96.36.199/24 <http://188.8.131.52/24> TW;
> 184.108.40.206/18 <http://220.127.116.11/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.
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:
But this will be fine:
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
More information about the nginx