You can create a destination NAT (DNAT) rule to change the destination IP address from a public to private IP address or the reverse.
Procedure
- In the vSphere Web Client, navigate to .
- Double-click an NSX Edge.
- Click .
- Click Add, and then click Add DNAT Rule.
- Select the interface on which to apply the DNAT rule.
- Select the required protocol.
- Type the source IP address in one of the following formats.
Format Example IP address 192.0.2.0 IP address range 192.0.2.0 -192.0.2.24 IP address/subnet 192.0.2.0 /24 any - Type the source port or port range.
Format Example Port number 80 Port range 80–85 any - Type the original (public) IP address in one of the following formats.
Format Example IP address 192.0.2.0 IP address range 192.0.2.0 -192.0.2.24 IP address/subnet 192.0.2.0 /24 any - Type the original port or port range.
Format Example Port number 80 Port range 80–85 any - Type the translated IP address in one of the following formats.
Format Example IP address 192.0.2.0 IP address range 192.0.2.0 -192.0.2.24 IP address/subnet 192.0.2.0 /24 any - Type the translated port or port range.
Format Example Port number 80 Port range 80–85 any - Enable the rule.
- (Optional) Enable logging to log the address translation.
- Click Add or OK to add the DNAT rule.
- Click Publish Changes.