Report this

What is the reason for this report?

Problem with nginx and ipv6

Posted on June 21, 2016

Hello.

I’ve followed the tutorial to enable ipv6 for an existing droplet. I’ve also added the following lines in the config file:

listen [::]:80; … listen [::]:443 ssl; … listen [::]:443; …

When I execute netstat it seems that nginx is listening: sudo netstat -tulpan | grep nginx tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 2321/nginx
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2321/nginx
tcp6 0 0 :::443 :::* LISTEN 2321/nginx
tcp6 0 0 :::80 :::* LISTEN 2321/nginx

However, if I do a web site test reachability, I obtain this:

AAAA DNS record 2001:8d8:1000:80fd:ad4e:243c:5161:1818 IPv6 web server web server is unreachable : Connection timed out IPv6 DNS server

Could anybody help me?? I don’t know what I’ve done wrong.

Thanks in advance.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Please, check if you have turned on your bindv6only:

$ sysctl -a | grep bindv6only # check if it's 0 then
$ vim /etc/sysctl.conf (editing to provide the content "net.ipv6.bindv6only = 1")
$ sysctl -p

Hai, have you resolved this issue? the /etc/systemctl.conf file has the value net.ipv6.bindv6only=1 , but still it failed to reach. I guess something with the nginx compilation that doesn’t support ipv6

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.