OpenVZ Forum - RDF feed
type: channel
items: route question
items: Re: route question

route question
type: item
description: Hi all, I have a serious problem about routing VEs to outside; I have ~310 VEs created, so the ip addresses is on different nets. HN: eth0 has a real public ip => 81.212.xx.xx HN: eth0:1 has a private ip => 192.168.0.1 HN: eth0:2 has a private ip => 192.168.1.1 VE100 to 999: venet0:0 has real public ips (no problem) VE1010 to VE1256: venet0:0 has 192.168.0.x (must reach to outside but must be unreachable from outside ) VE2010 to VE2256: venet0:0 has 192.168.1.x (must reachable to and from outside) the question is how can I route these? I tried many much route commands, used NAT but I couldnt do the full trick. Thanks.
creator: mohaw
date: 2008-01-21T02:36:42-00:00

Re: route question
type: item
description: Hi, I can only suggest you because I don't know what exactly you have been doing. Quote: VE100 to 999: venet0:0 has real public ips (no problem) no problem Quote: VE1010 to VE1256: venet0:0 has 192.168.0.x (must reach to outside but must be unreachable from outside ) I can suggest you to use SNAT to 81.212.xx.xx (ip from HN) when VPS tries to reach to outside. http://wiki.openvz.org/Using_NAT_for_VE_with_private_IPs Quote: VE2010 to VE2256: venet0:0 has 192.168.1.x (must reachable to and from outside) I can suggest you to use DNAT http://wiki.openvz.org/Using_NAT_for_VE_with_private_IPs
creator: maratrus
date: 2008-01-21T09:29:29-00:00