Help Center > > Service Overview> What Is NAT Gateway?

What Is NAT Gateway?

Updated at: Dec 05, 2019 GMT+08:00

The NAT Gateway service provides the network address translation (NAT) function for servers, such as Elastic Cloud Servers (ECSs), Bare Metal Servers (BMSs), and Workspace desktops, in a Virtual Private Cloud (VPC) or servers that connect to a VPC through Direct Connect or Virtual Private Network (VPN) in local data centers, allowing these servers to access the Internet using elastic IP addresses (EIPs) or to provide services for the Internet.

NAT Gateway supports source NAT (SNAT) and destination NAT (DNAT) functions.

  • The SNAT function translates a private IP address to a public IP address by binding EIPs to servers in a VPC, providing secure and efficient access to the Internet.
    Figure 1 shows the SNAT architecture.
    Figure 1 SNAT architecture

  • The DNAT function enables servers that share the same EIPs in a VPC to provide external services through the mappings between IP addresses and ports.

    Figure 2 shows the DNAT architecture.

    Figure 2 DNAT architecture

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?

Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel