My management network is internal, and I need to give servers on this network an Internet access. How can this be done?
All OnApp Versions
When a server on the management network does not have Internet connectivity, it is possible to set the control panel server to act as an Internet gateway.
From the Control Panel server:
1. Enable IP Forwarding:
# echo 1 > /proc/sys/net/ipv4/ip_forward
2. Apply the following rules to enable NAT routing. (Where eth0 is the control panel’s external networking interface and eth1 is the control panel’s management interface):
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# iptables -A FORWARD -i eth1 -j ACCEPT
3. From the servers on the management network set the default gateway to be the control panel server:
# route add default gw [Management IP of CP]