allow IPv6/Mask

Micha Glave nginx at
Fri Nov 23 12:25:53 UTC 2012


I wan't to allow just the local-IPv4-Subnet. Something like this:

listen *:80;
deny all;

After switching to IPv6-Dual-Layer I tried this ...

listen [::]:80;
allow ::ffff:;
deny all;

It doesn't work as expected. No one can see the page.
The following works:

listen [::]:80;
allow ::ffff:c0a8:2a00/120;
deny all;

In my opinion there should be a warning at the second. But it fails

Should I post a bug-report for this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list