Changes

Jump to: navigation, search

Using NAT for container with private IPs

107 bytes added, 18:56, 2 June 2015
How to provide access from Internet to a container
# iptables -t nat -A POSTROUTING -s ve_address -o eth0 -j SNAT --to ip_address
</pre>
 
Is need add GATEWAY in /etc/sysconfig/network-script/interface (IP of host that provide access internet).
After applying this, you'll see container' web server at <code><nowiki>http://ip_address:8080/</nowiki></code>.
Anonymous user

Navigation menu