Updated on 2026-07-10 GMT+08:00

Step 2: Buy a Public NAT Gateway

Scenarios

Buy a public NAT gateway.

Prerequisites

A VPC is available.

Procedure

  1. Go to the Buy Public NAT Gateway page.
  2. Configure required parameters. For details, see Table 1.
    Select the VPC and subnet you created in Step 1: Create a VPC and Two Subnets for VPC and Subnet.
    Table 1 Descriptions of public NAT gateway parameters

    Parameter

    Description

    Billing Mode

    Public NAT gateways are billed on a pay-per-use or yearly/monthly basis.

    Region

    The region where the public NAT gateway is located.

    Name

    The name of the public NAT gateway.

    Enter up to 64 characters. Only digits, letters, underscores (_), and hyphens (-) are allowed.

    VPC

    The VPC that the public NAT gateway belongs to.

    The selected VPC cannot be changed after the public NAT gateway is purchased.

    Subnet

    The subnet of the VPC that the public NAT gateway belongs to.

    The subnet must have at least one available IP address.

    The selected subnet cannot be changed after the public NAT gateway is purchased.

    The NAT gateway will be deployed in the selected subnet. The NAT gateway works for the entire VPC where it is deployed. To enable communications over the Internet, add SNAT or DNAT rules.

    Specifications

    The public NAT gateway specifications.

    The value can be Small, Medium, Large, or Extra-large. To view more details about specifications, click Learn more on the page.

    Enterprise Project

    The enterprise project that the public NAT gateway belongs to.

    If an enterprise project is configured for a public NAT gateway, the public NAT gateway belongs to this enterprise project. If you have not configured any enterprise project, select the default enterprise project.

    Advanced Settings (Optional)

    Click the drop-down arrow to configure advanced parameters of the public NAT gateway, such as Description.

    Advanced Settings > SNAT Connection TCP Timeout (s)

    The timeout period of a TCP connection established using the SNAT rule. If no data is exchanged within this period, the TCP connection will be closed.

    Value range: 40 to 7200

    Advanced Settings > SNAT Connection UDP Timeout (s)

    The timeout period of a UDP connection established using the SNAT rule. If no data is exchanged within this period, the UDP connection will be closed.

    Value range: 40 to 7200

    Advanced Settings > SNAT Connection ICMP Timeout (s)

    10

    The timeout period of an ICMP connection established using the SNAT rule. If no data is exchanged within this period, the ICMP connection will be closed.

    Value range: 10 to 7200

    Advanced Settings > TCP TIME_WAIT (s)

    5

    How long the side that actively closed the TCP connection is in the TIME_WAIT state.

    Value range: 0 to 1800

    Advanced Settings > Description

    Supplementary information about the public NAT gateway.

    Enter up to 255 characters. Angle brackets (<>) are not allowed.

    After you configure the parameters, the public NAT gateway price will be displayed. To view more pricing details about public NAT gateways, click Pricing details on the page.

  3. Click Next. On the page displayed, confirm the public NAT gateway specifications.
  4. Click Submit.

    The creation takes 1 to 5 minutes to complete.

  5. In the list, view the status of the public NAT gateway.