Help Center> NAT Gateway> User Guide (ME-Abu Dhabi Region)> FAQs> SNAT> What Are the Relationships and Differences Between the CIDR Blocks in a NAT Gateway and in an SNAT Rule?
Updated on 2022-01-25 GMT+08:00

What Are the Relationships and Differences Between the CIDR Blocks in a NAT Gateway and in an SNAT Rule?

When creating a NAT gateway, you must specify the VPC and subnet CIDR block for the NAT gateway. This CIDR block can only be used by the system.

When creating an SNAT rule with Scenario set to VPC, you need to configure a subnet CIDR block for the VPC so that servers in the subnet can access the Internet through the SNAT rule.

When creating an SNAT rule with Scenario set to Direct Connect, you need to configure the CIDR block of a local data center or another VPC so that ECSs in the CIDR block can access the Internet through the SNAT rule.