OpenVZ Forum


Home » General » Support » port forwarding if using bridge
port forwarding if using bridge [message #51564] Mon, 28 July 2014 12:01 Go to previous message
hkendusers is currently offline  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)


 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ploop Error
Next Topic: Mount a XFS partition inside VE with raw io ?
Goto Forum:
  


Current Time: Sun Apr 28 01:00:01 GMT 2024

Total time taken to generate the page: 0.03081 seconds