Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
Info

This page describes how to create NAT rules for virtual datacenters. For details of how to configure NAT networks in infrastructure, see Manage NAT

Display NAT rules

When the Network Address Translation (NAT) integration is available in your environment, the NAT tab will to display the NAT IPs and NAT rules for your virtual datacenters. From here you can manage NAT IPs and within the VM you can manage NAT rules.

Image Removed

The platform also displays the NAT rules that apply to each VM on the VM control panel on the Network tab.

Image Removed

Create a virtual datacenter with NAT

To create a virtual datacenter with NAT, create a virtual datacenter as usual, and the platform will automatically add a NAT IP and create an SNAT rule for all outgoing traffic. The default SNAT IP address is marked with a star. You can change this default to another address by selecting the new address and clicking the star button.

Image Removed

For each VM, you can also create DNAT rules to send incoming traffic from a NAT IP to a private IP on the VM. And you can additional SNAT rules to override the default, sending outgoing traffic through other NAT IPs.

Use a NAT IP for a load balancer

You can use a NAT IP as a public IP address for load balancing. 

Image Removed

The platform will automatically create a NAT rule to match the port mappings of the routing rule of the load balancer.

Image Removed

Obtain an additional NAT IP 

In addition to the NAT IP assigned to the virtual datacenter, you can obtain NAT IPs for creating additional NAT rules.

To obtain a NAT IP

  1. Click the + Add button on the top right-hand side of the screen
  2. Select the NAT network and click Accept

The platform will reserve an IP and allocate it to your virtual datacenter.

Image Removed

You can then use the NAT IP as the public IP address for a load balancer or to provide access to a private IP address.

...

:

  1. Go to Virtual datacenters and select virtual datacenter

  2. Go to NetworkNAT

    Display NAT rules for a VDCImage Added

     

To display NAT rules for a VM:

  1. Go to Virtual datacenters

  2. Select the VM

  3. Go to VM control panel → NAT

     Display NAT rules for a VM on the VM details panelImage Added

To manage or display NAT rules for a VM:

  1. Go to Virtual datacenters 

  2. Edit a VM

  3. Go to Networks → NAT

...

Create a NAT rule for DNAT

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

To create a NAT DNAT rule:

  1. Go

...

  1. to myCloud Virtual datacenters → Virtual appliances

...

  1. Edit your VM

  2. If your VM does not yet have an IP, go

...

  1. to Network

...

  1.  → NICs

...

  1.  and add a private IP

  2. Go

...

  1. to Network → DNAT

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

  3. Enter the details of the DNAT rule

...

  1.  Add a DNAT ruleImage Added

      ...

        1. For the Original (NAT IP)

      ...

        1. , select the IP address

      ...

        1. to receive external connections

      ...

        1. Select the

      ...

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

      ...

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

      ...

        1. Optionally, select the checkbox to Use all ports OR
          Enter the Original port for external connections. You cannot use

      ...

        1. an Original port for

      ...

        1. 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

      ...

        1. , enter the port on the VM

      1. Click Add

      2. Save the VM

      Image Removed

      ...

      Create a NAT rule for SNAT

      ...

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

      To create an SNAT rule:

      1. Go to Virtual datacenters → Virtual appliances

      2. Edit your 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

      ...

      Image Removed

      Modify and delete NAT rules

      From the NAT tabs you can also select a NAT rule to edit or delete it.

      ...

      1. top right-hand side of the tab

      2. Enter the addresses of the SNAT rule

        Add an SNAT ruleImage Added
        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

      3. Click Add

      4. Save the VM

      ...

      Use a NAT IP for a load balancer

      To use a NAT IP address as a public IP address for a load balancer:

      1. Use the virtual datacenter's NAT IP address or obtain an additional NAT IP address. See Obtain an additional NAT IP address for a virtual datacenter

      2. Create the load balancer and select the NAT IP

      ...

      The platform will automatically create a NAT rule to match the port mappings of the routing rule of the load balancer.

      ...

      Obtain an additional NAT IP for your virtual datacenter

      In addition to the NAT IP address assigned to the virtual datacenter, you can obtain NAT IP addresses for creating additional NAT rules.

      To obtain an additional NAT IP address:

      1. Go to Virtual datacenters Network → NAT

      2. Click the + add button on the top right-hand side of the screen

      3. Select the NAT network and click Accept

      The platform will reserve an IP address and allocate it to your virtual datacenter.

      ...

      You can then use the NAT IP address as the public IP address for a load balancer or to provide access to a private IP address.

      ...

      Limit NAT IP bandwidth for a VDC

      See Manage NAT QoS