edit-icon download-icon

Manage an SNAT table

Last Updated: Feb 07, 2018

The SNAT function provides the Internet proxy service for VPC ECS instances that do not have a public IP.

SNAT table

The SNAT function in the NAT gateway is abstracted as an SNAT table.

An SNAT table is automatically created after creating a NAT gateway. You cannot create or delete an SNAT table. You can enable the SNAT function by adding SNAT entries to the SNAT table.

SNAT entries

An SNAT table consists of multiple SNAT entries and each SNAT entry consists of the source VSwitch and a public IP. The VSwitch is where the ECS instance that needs the Internet access is located, and the public IP is a public IP allocated by the system to the purchased shared bandwidth package.

Example of SNAT table

VSwitch Public IP
vsw-184ipsxxx 139.224.xx.xx
vsw-11qht5xxx 139.224.xx.xx

An SNAT entry functions as follows:

When an ESC instance in the specified VSwitch initiates an Internet access request, the NAT gateway will provide it with the Internet proxy service and then the ECS instance can use the specified public IP to access the Internet.

Note: If an ECS instance already has a public IP (such as an EIP), the system will use the previously configured public IP to access the Internet and will not activate the SNAT function.

Add an SNAT entry

By adding an SNAT entry, the VPC ECS instances that do not have a public IP can access the Internet.

For details, see Add an SNAT entry.

Edit an SNAT entry

  1. Log on to the VPC console.

  2. In the left-side navigation pane, click NAT Gateway.

  3. Click the ID of the target gateway.

  4. In the left-side navigation pane, click SNAT Table.

  5. Click Edit in the Actions column of the target SNAT entry to update the SNAT entry settings.

Delete an SNAT entry

  1. Log on to the VPC console.

  2. In the left-side navigation pane, click NAT Gateway.

  3. Click the ID of the target gateway.

  4. In the left-side navigation pane, click SNAT Table.

  5. Click Delete in the Actions column of the target SNAT entry to delete the SNAT entry.

Thank you! We've received your feedback.