Network Address Translation (NAT)

Parallels H-Sphere supports NAT (Network Address Translation) which allows you to use internal IPs in your local area network. When configuring Parallels H-Sphere, use internal IPs in all instances, and Parallels H-Sphere will convert them into external IPs for the DNS settings and control panel web interface.

To enable NAT support in Parallels H-Sphere:

  1. Log into Control Panel server as cpanel user:
    1. Log in as root first:

      $ su -

    2. Log in as the cpanel user:

      # su -l cpanel

  2. Create the ips-map.xml file in the ~cpanel/shiva/psoft_config/ directory in the following format:

    <ips>
       <ip ext="external_ip" int="internal_ip"/>
       . . .
    </ips>

    Example:

    <ips>

    <ip ext="65.219.197.236" int="192.168.1.27"/>

    <ip ext="65.219.197.237" int="192.168.1.28"/>

    <ip ext="65.219.197.238" int="192.168.1.29"/>

    <ip ext="65.219.197.239" int="192.168.1.30"/>

    <ip ext="65.219.197.242" int="192.168.1.31"/>

    <ip ext="65.219.197.243" int="192.168.1.32"/>

    <ip ext="65.219.197.244" int="192.168.1.33"/>

    </ips>

  3. Set the following record in ~cpanel/shiva/psoft_config/hsphere.properties:

    IPS-XML-FILENAME = /hsphere/local/home/cpanel/shiva/psoft_config/ips-map.xml

  4. Restart Parallels H-Sphere to apply changes. To do this, run under root:

    For Linux:

    /etc/rc.d/init.d/httpdcp stop

    killall -9 java

    sleep 10

    /etc/rc.d/init.d/httpdcp start

    For FreeBSD:

    /usr/local/etc/rc.d/apachecp.sh stop

    killall -9 java

    sleep 10

    /usr/local/etc/rc.d/apachecp.sh start

To disable NAT support

  1. Remove the line mentioned in step 3 above from hsphere.properties.
  2. Restart Parallels H-Sphere.

See below for particular cases of configuring NAT in your Parallels H-Sphere cluster.

In this chapter:

Configuring Newly Installed H-Sphere with NAT Support

Enabling NAT Support on a Live System

Configuring NAT Firewall

Migrating IPs with NAT