An egress-only internet gateway provides outbound-only native IPv6 internet access for VPC resources.

It fills an important gap: IPv6 addresses can be globally routable, but many workloads still need the IPv6 equivalent of “private subnet outbound only” behavior.

Why It Exists

For IPv4, private instances can use a NAT gateway to initiate outbound connections and receive responses without allowing unsolicited inbound connections.

For native IPv6, there is no equivalent IPv4-style NAT requirement. IPv6 addresses can be globally routable. If a route table sends ::/0 to a normal internet gateway, then inbound-initiated IPv6 connectivity is possible when security controls allow it.

An egress-only internet gateway allows:

  • Outbound IPv6 connections initiated by VPC resources.
  • Response traffic for those connections.

It blocks:

  • New inbound IPv6 connections initiated from outside the VPC.

Architecture

flowchart LR
    Instance["IPv6-enabled instance"]
    RT["Private IPv6 route table<br/>::/0 -> egress-only IGW"]
    EIGW["Egress-only internet gateway"]
    Internet["IPv6 internet / AWS public endpoints"]

    Instance --> RT --> EIGW --> Internet
    Internet -->|"response traffic allowed"| EIGW --> RT --> Instance
    Internet -. "new inbound connection blocked" .-> EIGW

Route Table Pattern

DestinationTargetPurpose
VPC IPv6 CIDRlocalIntra-VPC IPv6 routing
::/0Egress-only internet gatewayOutbound-only IPv6 internet path

Do not point ::/0 to a normal internet gateway when the intent is outbound-only IPv6.

Comparison

Use CaseIPv4 PatternNative IPv6 Pattern
Bidirectional internet accessInternet gateway + public IPv4Internet gateway + IPv6
Outbound-only internet accessNAT gatewayEgress-only internet gateway
IPv6-to-IPv4 translationDNS64/NAT64 with NAT gatewayDNS64/NAT64 with NAT gateway

Security Considerations

  • Egress-only internet gateways are stateful.
  • You cannot associate security groups with them.
  • Use security groups and NACLs on the resources/subnets.
  • Include IPv6 in exposure management and detection logic.
  • Review route tables for both 0.0.0.0/0 and ::/0.

AWS References