Updated on 2024-04-15 GMT+08:00

Why Do I Need DNAT?

In a public NAT gateway, DNAT enables servers in a VPC to share an EIP to provide services accessible from the Internet. With an EIP, a public NAT gateway forwards the Internet requests from only a specific port and over a specific protocol to a specific port of a server, or it can forward all requests to the server regardless of which port they originated on. For details, see Adding a DNAT Rule.

In a private NAT gateway, DNAT enables servers that share the same transit IP address in a VPC to provide services accessible from on-premises data centers or other VPCs. For details, see section "Adding a DNAT Rule" under "Managing Private NAT Gateways" in NAT Gateway User Guide.