Step 4: Add an SNAT Rule
Scenarios
After the private NAT gateway is created, add an SNAT rule so that some or all servers in a VPC subnet can share a transit IP address to access on-premises data centers or other VPCs.
Procedure
- Log in to the management console.
- Click in the upper left corner and select the desired region and project.
- Click Service List in the upper left corner. Under Networking, select NAT Gateway. In the navigation pane on the left, choose Private NAT Gateways.
The Private NAT Gateways page is displayed.
- In the private NAT gateway list, click the name of the private NAT gateway that you want to add an SNAT rule for.
- On the SNAT Rules tab, click Add SNAT Rule.
- Configure required parameters. For details, see Table 1.
Table 1 Description Parameter
Description
Subnet
The subnet type of the SNAT rule. Select Existing or Custom.
Select a subnet where IP address translation is required in the service VPC.
Monitoring
You can create alarm rules to watch the number of SNAT connections.
Transit IP Address
The transit IP address you assigned in Step 3: Create a Private NAT Gateway
Description
Provides supplementary information about the SNAT rule. Enter up to 255 characters.
- Click OK.
- View details in the SNAT rule list.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.