Updated on 2024-03-30 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 Service List in the upper left corner. Under Network, select NAT Gateway.
  3. On the Public NAT Gateways page, click the name of the public NAT gateway.
  4. 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. Log in to the server.
  3. Verify that the server can access the Internet.

    Figure 1 Verification result
    Figure 2 Failed to access the Internet