Access EC2 instance via ipv6

0

My AWS ec2 instance is accessible via ipv4, but I want to replace it by ipv6. I followed the instructions under https://4sysops.com/archives/assign-an-ipv6-address-to-an-ec2-instance-dual-stack/ to configure ipv6, but it is not working: via ping6 <ipv6>, it says the network is not accessible, same when I enter [<ipv6>] in the browser. When I open the ipv4 address in the browser, it works. Any idea why I can't access the instance via ipv6?

My configuration on AWS:

CIDR associated to VPC: Enter image description here Enter image description here

CIDR is also associated to subnet: Enter image description here

Routing table of VPC: Enter image description here

Inbound security rules: Enter image description here

Instance has an ipv6: Enter image description here

On the instance itself, there is a nginx server which redirects requests to a shiny webserver (https://posit.co/download/shiny-server/). The nginx configuration looks like this: Enter image description here

tadaki
posta 2 mesi fa152 visualizzazioni
1 Risposta
2
Risposta accettata

Hello.

Do you have Nginx configured to listen to IPv6?
https://nginx.org/en/docs/http/ngx_http_core_module.html#listen

For example, if you add "listen [::]:80;" as shown below, port 80 will be able to listen on IPv6.

server {
    listen [::]:80;
    listen 80;
    server_name example.com;
    # example setting
}

Also, does the ISP you use support IPv6?
If your ISP does not support IPv6, you will not be able to access it even if you have attached IPv6 on EC2.

profile picture
ESPERTO
con risposta 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa
  • That was the missing part, thank you :)

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande