OpenVZ Forum


Home » General » Support » Networking? (NAT)
Re: Networking? (NAT) [message #23309 is a reply to message #23306] Thu, 15 November 2007 13:18 Go to previous messageGo to previous message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
vice versa

http://wiki.openvz.org/Using_NAT_for_VE_with_private_IPs#How _to_provide_access_for_VE_to_Internet
# iptables -t nat -A POSTROUTING -s src_net -o eth0 -j SNAT --to ip_address

where src_net is a range of IP addresses of VEs to be translated by SNAT, and ip_address is the external IP address of your Hardware Node. Multiple rules are allowed, for example, in case you wish to specify several ranges of IP addresses. If you are using a number of physical network interfaces on the Node, you may need to specify a different interface for outgoing connections, e.g. -o eth2.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: compiling kernel 2.6.8.1, net/ipv6/route.c: Error: request for member `lock' in something
Next Topic: Help with port to ARM architecture
Goto Forum:
  


Current Time: Sat Jul 20 07:33:43 GMT 2024

Total time taken to generate the page: 0.02486 seconds