Updated on 2023-03-17 GMT+08:00

Step 4: Test the Connection

Scenarios

After adding an SNAT rule, you can perform the following steps to verify the connection:

  1. Verify that the SNAT rule has been added for the public NAT gateway.
  2. Verify that servers that have no EIP bound can access the Internet through the NAT gateway.

Prerequisites

An SNAT rule has been added.

Verifying that the SNAT Rule Has Been Added

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Click Service List in the upper left corner. Under Networking, select NAT Gateway.
  4. On the Public NAT Gateways page, click the name of the public NAT gateway.
  5. In the SNAT Rules tab, view details about the SNAT rule.

    If Status of the SNAT rule is Running, the SNAT rule has been created.

Verifying that Servers Can Access the Internet Through the NAT Gateway

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Hover on in the upper left corner to display Service List and choose Compute > Elastic Cloud Server.
  4. Log in to the server.
  5. Verify that the server can access the Internet.

    Figure 1 Verification result
    Figure 2 Failed to access the Internet