New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Nginx Allow Deny Block Mix Ipv4 and Ipv6
team_traitor
Member
in Help
I don't know what to do now.
Need help. This the first time I encountered this.
listen 443 ssl;
listen [::]:443 ssl;
include snippets/subdomain.example.tld.conf;root /srv/tools/phpMyAdmin-5.0.4-all-languages; index index.php; server_name subdomain.example.tld; location / { allow 2001:XX:XX-----; # allow [2001:XX:XX-----]; // error allow xx.xx.xxx.xx; deny all; try_files $uri $uri/ =404; }
When I tried this I always get the 403 (Forbidden error from nginx);
What is the proper way to allow a mix of Ipv4 and Ipv6?
Thanks for the help in advance.
Comments
http://nginx.org/en/docs/http/ngx_http_access_module.html
not working. I tried that before I posted here.
2001
not working too. but the syntax is okay according to nginx.
Still I get a 403 Forbidden. :-(
Is this IP from your home ISP?
It turns that there is a problem with Ipv6 on my vps.
I get a this message when I ping Ipv6 enable website inside my box.
I use the opera vpn (which gives Ipv6 as a test).
I don't have much time to spare so I figure this out next time. Thanks for the help guys. LET never let me down.