Changes

Jump to: navigation, search

Using NAT for container with private IPs

4 bytes added, 13:04, 3 July 2006
change second -p to --dport
 
== How to provide access for VE to Internet ==
For example, if you need a web server in a VE to be accessible from outside and, at the same time, keep a web server on the [[Hardware Node]] be accessible, use the following config:
<pre>
# iptables -t nat -A PREROUTING -p tcp -d ip_address -p -dport 8080 \
-i eth0 -j DNAT --to-destination ve_address:80
# iptables -t nat -A POSTROUTING -s ve_address -o eth0 -j SNAT --to ip_address
1
edit

Navigation menu