Step 4: Add an SNAT Rule
Scenarios
After the private NAT gateway is created, you need to add SNAT rules. An SNAT rule allows all or some servers in a VPC subnet to access your on-premises data center or remote VPC by sharing a transit IP address.
Procedure
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project. - On the console homepage, under Network, click NAT Gateway. In the navigation pane on the left, choose Private NAT Gateway.
The private NAT gateway console is displayed.
- In the NAT gateway list, click the name of the private NAT gateway for which you want to add the SNAT rule.
- On the SNAT Rules tab, click Add SNAT Rule. Figure 1 Add SNAT Rule
- Specify the parameters as prompted. For details, see Table 1.
Table 1 Parameter descriptions Parameter
Description
Type
Specifies whether servers in a VPC subnet or a subset of a current VPC subnet need to use the SNAT rule.
Subnet
A service VPC subnet where IP addresses need translation.
Transit Subnet
The transit subnet created in Step 3: Create a Private NAT Gateway.
Transit IP Address
The transit IP address assigned in Step 3: Create a Private NAT Gateway.
Description
Supplementary information about the SNAT rule. The description can contain up to 255 characters.
- Click OK.
- View details in the SNAT rule list. If Status is Running, the rule has been added.
Last Article: Step 3: Create a Private NAT Gateway
Next Article: Step 5: Add a Route
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.