Changes

Jump to: navigation, search

Using NAT for container with private IPs

No change in size, 15:58, 21 September 2013
/24 subnet mask is more common
where <tt>src_net</tt> is a range of IP addresses of containers to be translated by SNAT, and <tt>ip_address</tt> is the external IP address of your [[Hardware Node]]. The format of src_net is xx.xx.xx.xx/xx ([[w:CIDR|CIDR notation]]). For example to specify IP addresses from 192.168.2.1 through 192.168.2.127 use:
<pre>
# iptables -t nat -A POSTROUTING -s 192.168.2.0/25 24 -o eth0 -j SNAT --to ip_address
</pre>

Navigation menu