port forwarding if using bridge [message #51564] |
Mon, 28 July 2014 12:01 |
hkendusers
Messages: 12 Registered: June 2010
|
Junior Member |
|
|
Hi all,
I have googled and search in forum, but seems no solution.
Currently I am using port forwarding on OpenVZ according to openvz.org/Using_NAT_for_container_with_private_IPs and it is working fine.
e.g.:
iptables -t nat -A PREROUTING -p tcp --dport 1234 -j DNAT --to IP_ADDRESS:2345
And now I am testing to use bridge network according to openvz.org/Virtual_Ethernet_device
It is working fine too. However I would like to know how I could also use port forwarding for this container with bridged network?
For details network:
Hardware node IP: 12.34.56.78 (eth0), 78.90.12.34(vzbr0)
Container 101 IP: 12.34.56.100 (non bridged network)
Container 102 IP: 78.90.12.100 (bridged network)
|
|
|
|
|
|
|