OpenVZ Forum


Home » General » Support » route question
route question [message #26296] Mon, 21 January 2008 02:36 Go to next message
mohaw is currently offline  mohaw
Messages: 7
Registered: April 2006
Junior Member
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.

[Updated on: Mon, 21 January 2008 02:39]

Report message to a moderator

Re: route question [message #26305 is a reply to message #26296] Mon, 21 January 2008 09:29 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
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
Previous Topic: Network Issue
Next Topic: Differences between venet and veth
Goto Forum:
  


Current Time: Sat Mar 02 12:27:50 GMT 2024

Total time taken to generate the page: 0.02517 seconds