Changes

Jump to: navigation, search

Using NAT for container with private IPs

127 bytes added, 21:35, 12 September 2015
no edit summary
in <code>/etc/modules.conf</code>, <code>/etc/modprobe.conf</code>, or any file under <code>/etc/modprobe.d/</code> (such as <code>/etc/modprobe.d/parallels.conf</code>). '''If there is such a line, please'''
#change <code>=1</code> to <code>=0</code>
#Reboot reboot the node.
=== IP forwarding ===
# iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to ip_address
</pre>
 
Or you can use:
 
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
 
To save new iptables rules:
 
# service iptables save
=== Firewall ===
91
edits

Navigation menu