OpenVZ Forum - RDF feed
type: channel
items: *SOLVED* Need help with networking
items: Re: Need help with networking

*SOLVED* Need help with networking
type: item
description: 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.
creator: kshade
date: 2007-10-02T14:14:20-00:00

Re: Need help with networking
type: item
description: 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
creator: rickb
date: 2007-10-02T17:50:40-00:00

Re: Need help with networking
type: item
description: Hello, I'm having the same problem, please do post the solution here when you get this resolved.
creator: AN@S
date: 2007-10-03T07:59:24-00:00

Re: Need help with networking
type: item
description: 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.
creator: maratrus
date: 2007-10-03T08:50:32-00:00

Re: Need help with networking
type: item
description: 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 :)
creator: kshade
date: 2007-10-03T10:35:27-00:00