OpenVZ Forum


Home » General » Support » *ISSUE* VE route problem
Re: *ISSUE* VE route problem [message #13976 is a reply to message #13975] Fri, 08 June 2007 16:04 Go to previous messageGo to previous message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
ok. so your HN is on a public IP, VE on a private, and you want your VE to communicate with the internet. How can it do this when you have not configured any NATing, masquerading, or otherwise any way for the 192.168.* packet to reach the net? you need to rewrite it somehow, somewhere before a router that isn't configured to route 192.168.* receives it.

check out this wiki page, http://wiki.openvz.org/Using_NAT_for_VE_with_private_IPs

this scenario describes your setup exactly:

How to provide access for VE to Internet

To enable the VEs, which have only internal IP addresses, to access the Internet, SNAT (Source Network Address Translation, also known as IP masquerading) should be configured on the Hardware Node. This is ensured by the standard Linux iptables utility. To perform a simple SNAT setup, execute the following command on the Hardware Node:

# iptables -t nat -A POSTROUTING -s src_net -o eth0 -j SNAT --to ip_address


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* Searching for OpenVZ kernel 2.6.9-42
Next Topic: *RESOLVED* template generation
Goto Forum:
  


Current Time: Mon Jul 29 05:22:33 GMT 2024

Total time taken to generate the page: 0.04746 seconds