Changes

Jump to: navigation, search

Using NAT for container with private IPs

No change in size, 16:10, 21 September 2013
m
Reverted edits by Paparaciz (talk) to last revision by 217.82.102.23
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/24 25 -o eth0 -j SNAT --to ip_address
</pre>

Navigation menu