An NSX ESG also provides Network Address Translation (NAT) capability to allow mapping of a public IP address to devices that are on private IP addresses space or have overlapping IP addresses.
The ESG provides the ability to configure two types of NAT, which are as follows:
- Source NAT (SNAT): This is the most common type of NAT and is used to change the source address of the packet passing through
- Destination NAT (DNAT): Used to change the destination IP address of the packet passing through; it is generally used to change from a public IP address to private RFC 1918 address on the internal network
In this recipe, we will configure both SNAT and DNAT for our Windows VM. The configuration of each is depicted in the following figure:
As you can see in the preceding figure, for the SNAT example we will be changing the source address from...