An EC2 instance in a VPC has a global IPv6 address and a working IPv6 OS configuration. The destination is a native IPv6 HTTPS API with a real AAAA record, not an IPv4-only destination.
The VPC has an egress-only internet gateway, but the subnet route table has no outbound IPv6 route yet. No other outbound route matches the destination. The EC2 security groups and subnet NACLs already allow IPv6 TCP 443 and return traffic.
Allow EC2-initiated connections and replies while also preventing Internet-initiated IPv6 connections at the gateway. Retain the existing IPv4 routes.
Which route configuration is needed for this subnet?
For the native IPv6 destination, route ::/0 to the egress-only internet gateway. Distinguish IPv4 routing and DNS64/NAT64 translation routes, and check SG and NACL permissions separately.
Detailed explanation
NAT64 can translate IPv6 to IPv4, but DNS64 does not change an existing AAAA address. The translation route 64:ff9b::/96 alone does not match this native IPv6 destination.
A regular Internet Gateway does not provide egress-only control. Security groups or NACLs might reject such traffic, but that is distinct from the requirement to prevent Internet-initiated connections at the gateway as well.
The route 0.0.0.0/0 matches IPv4 destinations, not the IPv6 address returned in the AAAA record. Adding an IPv4 route does not supply the missing IPv6 default route.
Route the native IPv6 destination through an IPv6 route to the egress-only gateway. It forwards EC2-initiated connections and replies while also meeting the requirement to prevent Internet-initiated IPv6 connections at the gateway.
Check official documentation
Compare the following points with the official documentation.
Compare the official documentation with route-table associations, the EC2 IPv6 address, the destination AAAA record, and SG/NACL rules. In an available authorized test environment, verify IPv6 HTTPS connections and replies, and test new connections from an external IPv6 host under your control. Record configuration and traffic observations separately.
Official references
- Official documentation 1
- Official documentation 2
- Official documentation 3
- Official documentation 4
- Official documentation 5
- Official documentation 6
What to confirm
The associated route table sends ::/0 to the egress-only gateway, and native IPv6 HTTPS connections and replies succeed. Internet-initiated connections do not establish, but a timeout alone does not identify which control rejected them. Check SG/NACL rules as well, and retain IPv4 routes.
Key points
- native IPv6
- IPv6 default route
- NAT64
Notes
- Environment: Official VPC documentation review; optional route, DNS, and controlled traffic checks in an authorized test environment.
- Reviewed against the linked AWS documentation on 2026-10-19.
Foundation review
Match the destination family and associated route table
The destination is a native IPv6 address returned in an AAAA record, not an IPv4-only destination. Configure the IPv6 default route ::/0 in the route table actually associated with the subnet. The IPv4 route 0.0.0.0/0 is not a substitute. Assigning an IPv6 address alone does not create an outbound route.
Separate return traffic from Internet-initiated connections
An egress-only internet gateway is stateful: it forwards IPv6 connections initiated by EC2 and their replies, while preventing IPv6 connections initiated from the Internet. A regular Internet Gateway does not provide that outbound-only control. EC2 security groups and subnet NACLs are separate controls; a security group cannot be associated with the egress-only gateway itself.
Identify what NAT64 and DNS64 translate
NAT Gateway also supports IPv6-to-IPv4 connections through NAT64. For IPv4-only names, DNS64 synthesizes addresses under 64:ff9b::/96 when no AAAA exists, and that prefix is routed to NAT Gateway. When the name already has an AAAA record, DNS64 returns its original IPv6 address unchanged. The translation prefix does not supply a route to this native IPv6 destination.