Hi, I just started with OpenVZ and can't get networking to work. My setup looks like this: [Internet] ^ | eth0 | v [OpenVZ-Server (Public IP)] |vnet [VE (Private IP)] I can Ping the servers IP from the VE and the VEs private IP from the Host, ssh also works between them, but the VE can't acces the Internet. Probably a routing problem but I'm stuck :( The routing tables: Host: crct master ~ # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.100 * 255.255.255.255 UH 0 0 0 venet0 77.37.6.0 * 255.255.255.0 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 77.37.6.1 0.0.0.0 UG 0 0 0 eth0 VE: oldserver ~ # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.0.2.0 * 255.255.255.0 U 0 0 0 venet0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 192.0.2.1 0.0.0.0 UG 0 0 0 venet0 Issuing the route command on the VE takes some time. The VEs /etc/conf.d/net looks like this: config_venet0=( "192.168.0.100/32" ) routes_venet0=( "-net 192.0.2.0/24" "default via 192.0.2.1" ) Note the default GW. Is this right? Both Host and VE run on Gentoo.
Most common causes for this are deny rules in your forward chain or packet forwarding disabled on the hardware node. Please check and let us know. Rick
Hello, I'm having the same problem, please do post the solution here when you get this resolved.
http://wiki.openvz.org/Using_NAT_for_VE_with_private_IPs Have you read this article? May be it would be useful for your case.
maratrus wrote on Wed, 03 October 2007 10:50 http://wiki.openvz.org/Using_NAT_for_VE_with_private_IPs Have you read this article? May be it would be useful for your case. Ah, thanks a lot, that helped :)