My business's web site uses the AWS platform. I want the site's visitors to be able to reach my content using the IPv6 protocol. How can I add an IPv6 address?
My business's web site uses the AWS platform. I want the site's visitors to be able to reach my content using the IPv6 protocol. How can I add an IPv6 address?
Although EC2 instances are not native IPv6-capable as of this writing, Amazon has implemented IPv6 for its US East (Northern Virginia), EU (Ireland), Asia Pacific (Tokyo), and Asia Pacific (Singapore) Elastic Load Balancers. I’ll demonstrate how to make IPv6 content available using EC2 instances and a load balancer.
Elastic Load Balancer (ELB) Set-up
I'll assume that you are already using a load balancer. (If you want to set one up, follow the directions in the Elastic Load Balancer Developer's Guide at http://awsdocs.s3.amazonaws.com/ElasticLoadBalancing/latest/elb-dg.pdf).
Place a check next the ELB entry so that detailed information appears in the bottom panel. Write down your dual stack name for your ELB. It will resemble a name like dualstack.new-balancer-751654286.us-east-1.elb.amazonaws.com.
Testing DNS
Use dig or nslookup to verify that you get A (IPv4) and AAAA (IPv6) records using the dual stack ELB DNS name. If you are not comfortable with these command-line tools, use a web-based dig such as the one at http://www.kloth.net/services/dig.php.
Create CNAMEs for your domain
I recommend testing on a throw-away domain to avoid potential production outages. The CNAME for www.example.com should point to the dual stack ELB name.
Verification
Visit www.example.com from an IPv6 connected host. Alternatively, you can use http://ipv6-test.com/validate.php to test IPv6 connectivity to your site.
IPv6 is not available (as of Sep 2013) for EC2; however it is available for ELB. So you can use ELB as a sort of IPv4 gateway, but you can not yet assign IPv6 addresses to EC2 instances.
There is chatter that this may change in the "near future" (whatever that means).
You can make the site available with IPv6 (and some other benefits) by proxying your site through CloudFlare CDN.
You can get a free IPv6 tunnel from Tunnelbroker. It works well with EC2. I've tested it.
IPv6 now generally available
by Jeff Barr on 25 JAN 2017
AWS EC2 instance still receive RFC1918 IPv4 address space but if you have the web service behind an ELB then there is the
dualstack
andipv6
prefixed hostnames for the ELB instance that provide dual IPv4/IPv6 and only IPv6 access. The communication between the ELB and the EC2 instance will still remain as IPv4 but the client connecting via IPv6 will not see anything different unless the web application you're hosting specifically looks for the IPv6 address.Last time our goal was to migrate Python Django application from Linode server to Amazon EC2-VPC. At first I read a lot information over Internet about EC2 instances and notice that EC2 VPC doesn't support IPv6 at this time.
Yes, we know that it maybe possible with ELB and EC2-Classic, but we don't have ability to setup EC2-Classic, because our accout newer that required by Amazon for EC2-Classic. It was big problem, because we like AWS infrustructure and RDS database style, but we need to get IPv6 in our application.
After time of thinking we decide to make Linode server, that already has IPv6 support, as proxy. In our nginx config on Linode we proxy all traffic to the EC2-VPC Django application on port 9099 also we get static from the EC2-VPC:
In our EC2-VPC we make our Django application on port 9099 and make it accessible external, also at the Amazon Console we allow port 9099 accessible external too, because we need that our Linode nginx be able to send traffic here. Also don't forget to send static and media from EC2-VPC to Linode, by nginx:
Finally we point AAAA DNS record to the Linode server and A DNS record to the EC2-VPC, and all works good. All traffic comes to EC2-VPC, Real IP stored in X-Real-IP header. Actually I think Linode server maybe expensive to make it just as proxy if you don't have any other applications on it. So it's possible to use any server that has proxy feature and IPv6 support of course.
My original post : Receive Ipv6 Traffic On Amazon Ec2 Vpc