You can configure certain vApp networks to provide port forwarding by adding a NAT mapping rule.
Port forwarding provides external access to services running on virtual machines on the vApp network.
When you configure port forwarding, VMware Cloud Director maps an external port to a service that runs on a virtual machine dedicated to inbound traffic.
When you add a port forwarding rule to a vApp network, it appears at the bottom of the NAT mapping rule list. For information about how to set the order in which port forwarding rules are enforced, see
- Verify that the vApp network is routed.
- Verify that the firewall on the vApp network is enabled. If you disable the firewall, the NAT mapping rules are no longer applied to the vApp network.
- On the Virtual Data Center dashboard screen, click the card of the virtual data center you want to explore, and from the left panel, select vApps.
- Click to view the vApps in a card view.
- In the card of the selected vApp, click Details.
- On the Networks tab, click a network to view the network details.
- Click Services and click Edit.
- To enable NAT, toggle on the NAT option.
- From the NAT Type drop-down menu, select Port Forwarding, and click Add.
- (Optional) To enable IP masquerading, select the check box.
- Configure the port-forwarding rule.
- Select an external port.
- Select a port to which to forward.
- Select a virtual machine interface.
- Select a protocol for the type of traffic to forward.
- Click Save.
What to do next
If necessary, rearrange the port-forwarding rules by using the Move Up or Move Down buttons.