VM NAT

This section describes how to create NAT rules for your VM if NAT is available in your virtual datacenter

You can create source and destination network address translation rules for your VMs.

Create a DNAT rule

To enable VMs outside your VDC to connect to a VM with a private IP address, after you obtain a NAT IP, create a destination NAT rule, which is also called a DNAT rule. 

To create a DNAT rule:

  1. Go to myCloudVirtual datacenters → Virtual appliances

  2. Edit a VM

  3. If your VM does not yet have an IP, go to Network → NICs and add a private IP

  4. Go to Network → DNAT

  5. On the top right-hand side of the tab, click the + add button

  6. Enter the details of the DNAT rule

    1. For the Original (NAT IP), select the IP address to receive external connections

    2. Select the Protocol for the connection, which can include TCP, UDP, any, and ICMP

    3. For the Translated IP, select the private IP that is attached to the VM

    4. Optionally, select the checkbox to Use all ports OR
      Enter the Original port for external connections. You cannot use an Original port for a NAT IP in more than one NAT rule.
      The platform will display the ports that are already used in other rules for the selected NAT IP.
      AND for the Translated port, enter the port on the VM

  7. Click Add

  8. Save the VM

Create an SNAT rule

To send outgoing traffic through a NAT IP that is not the default one, add an additional SNAT rule with these steps:

To create an SNAT rule:

  1. Go to Virtual datacenters → Virtual appliances

  2. Edit VM

  3. If your VM does not yet have an IP, go to NetworkNICs and add a private IP

  4. Go to Network → SNAT

  5. Click the + add button on the top right-hand side of the tab

  6. Enter the addresses of the SNAT rule

    1. For the Original IP, select the IP that is attached to the VM

    2. For the Translated (NAT IP), select the IP address to display for outgoing connections

  7. Click Add

  8. Save the VM

Copyright © 2006-2024, Abiquo Holdings SL. All rights reserved