Configure a NAT Gateway
Use the Data Center Designer (DCD) to add a Managed NAT Gateway to your Virtual Data Center (VDC), assign a reserved public IP address, connect it to a private LAN, and create Source NAT (SNAT) rules that define which outbound traffic from your private Virtual Machines (VMs) is translated.
Create a NAT Gateway
1. In the DCD, go to Menu > Virtual Data Centers.
2. Select the data center where you want to configure a NAT gateway.

3. Drag at least one VM from the Palette to the Workspace to create a private network containing a NAT gateway. You can select a Dedicated Core Server, vCPU Server, Cloud GPU VM, or a Confidential VM.
4. Drag a NAT Gateway element from the Palette to the Workspace.
5. Connect the source network of the NAT gateway to the private network containing your VM.
6. Set the properties of the NAT gateway by selecting the element in the Workspace and opening its properties in the Inspector pane. Specify the Settings and Gateway IPs as mentioned in the following tabs:
To configure a NAT gateway, specify the following details:
Enter the Name of the NAT gateway.
Specify Public IPs by selecting a reserved IP address from the drop-down list. You can add multiple IP addresses.

After the first provisioning, the current IP address is displayed. (Optional) To change the private IP address of the NAT gateway, open the Gateway IPs tab. To change it:
Select Remove IP from the drop-down list next to the current IP address.
Select Add IP and enter a new IP address.

7. Provision your changes.
Configure NAT Rules
You must provision the NAT gateway before NAT rules can be configured. Select the NAT Rules tab > Create SNAT Rule.
Source and target rules determine which traffic the gateway translates and where it is allowed to go. Source identifies the private VMs or subnets whose outbound packets the gateway must translate, and which public IP masks them. Target optionally restricts the Internet destinations those packets can reach and, for TCP and UDP, the port range allowed. Together, they give you precise control over what leaves your private network and where it can go.

Enter a Name for the rule.
Select a Protocol: TCP, UDP, ICMP, or ALL from the drop-down list. Configure the source and target:
Public IP: Select one of the public IP addresses assigned to the NAT gateway. This address masks the source address of outgoing packets.
Subnet: Enter an individual IP address or a complete subnet in Classless Inter-Domain Routing (CIDR) notation (example:
10.10.10.0/24) for the VM or network covered by this rule.
Subnet: Enter an individual IP address or a complete subnet in CIDR notation (example:
8.8.8.0/24) to restrict Internet access to a specific destination.Port range (optional): Enter a start and end port to restrict access to a specific port or range. Port ranges apply to TCP and UDP only. For example, to limit VMs to Google DNS, enter
8.8.8.8/32as the target subnet and53for both the start and end port.
Select Create to save the rule.
Provision your changes.
Next steps
Last updated
Was this helpful?