SV: IPv6 range specification for allow/deny

Maxim Konovalov maxim at nginx.com
Thu Aug 15 12:20:46 UTC 2013


On 8/15/13 4:13 PM, Jens Rantil wrote:
> Hi,
> 
> Thanks for your link. Do you know which version that first had IPv6 ranges supported in allow/deny? I can't seem to get it to work.
> 
Just curious: what version do you use?

> Cheers,
> Jens
> 
> -----Ursprungligt meddelande-----
> Från: nginx-bounces at nginx.org [mailto:nginx-bounces at nginx.org] För Ruslan Ermilov
> Skickat: den 15 augusti 2013 14:00
> Till: nginx at nginx.org
> Ämne: Re: IPv6 range specification for allow/deny
> 
> On Thu, Aug 15, 2013 at 11:51:33AM +0000, Jens Rantil wrote:
>> Hi,
>>
>> I'd like to limit a range of IPv6 space to a "server" context using "allow" and "deny". I haven't been able to find any information on how to do this in the documentation, nor on the web. The only example I've found[1] is for fixed IPv6 adresses like so:
>>
>> allow   2620:100:e000::8001;
>>
>> [1] http://wiki.nginx.org/HttpAccessModule
>>
>> So far I have tried
>>
>> allow   2d00:1201::/32
>> allow   [2d00:1201::]/32
>>
>> but nginx configuration validation complains. Is this IPv6 ranges possible to allow/deny? What is the correct format? Any input would be appreciated.
> 
> See the official docs:
> http://nginx.org/en/docs/http/ngx_http_access_module.html
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
> 
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
> 


-- 
Maxim Konovalov
http://nginx.com



More information about the nginx mailing list