Search Our Database

How to create NAT rules for your vCloud Director’s VM

Last updated on |
under |
by

vCloud Director’s account provided a tier-1 logical router that supports source NAT (SNAT), destination NAT (DNAT) and reflexive NAT. It is the default 1-to-1 NAT that assign one public IP as outgoing IP (SNAT), and one public IP as incoming IP (DNAT).

To perform NAT for your Dynamic Cloud environment, first you need to look at the availability of your public IP address pool, and plan out their usage carefully.

To view the available public IP address pool:

1.Login to your vCloud Director account, and navigate to ‘Networking’ at the upper menu.

2.Click on ‘Edge Gateways’ and click on your available T1 Edge Gateway router.

3.You will be brought over to the T1 Edge gateway router configuration page, click on ‘IP Allocations’ under ‘IP Management’.

4.Here you can have a full view on the available Public IP list and what they have been used on.

 

Next we look into how to create a 1-to-1 NAT of a public IP address to a VM with private IP.

 

1.Navigate to Services à NAT, and click ‘NEW’ to create a new NAT rules.

2.We will first create a DNAT to translate one public IP incoming to VM internal IP. (Please change the value to your public IP number and your VM private IP number), Click ‘Save’ after the value inserted.

3.Next we create a SNAT to translate an internal IP outgoing to public network and use the public IP you want. Add the rules as following. (Please change the value to your public IP number and your VM private IP number), Click ‘Save’ after the value inserted.

4.The 1-to-1 NAT rules should be successfully setup by now. In your VM, setup a lookup DNS server and your VM will be able to access public network.