OpenVZ Forum


Home » General » Support » Network Setup for Multiple Subnets
Re: Network Setup for Multiple Subnets [message #15439 is a reply to message #15434] Tue, 31 July 2007 07:49 Go to previous messageGo to previous message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hello.

may be the following iptables rule (on a Hardware Node) can help you:

# iptables -t nat -A POSTROUTING -s $VE_SRC_PUBLIC_IP -d $PRIVATE_SUBNET -o eth0 -j SNAT --to $VE_SRC_PRIVATE_IP

i.g. if a VE with VE_PUBLIC_IP (say 85.86.87.88) ping a node with private IP (say 172.18.2.3), the source address for the outcoming packets will be changed to $VE_SRC_PRIVATE_IP (say 172.18.2.4).

Hope this helps.

Konstantin.


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help w/ ntpdate
Next Topic: OpenVZ help needed!
Goto Forum:
  


Current Time: Thu Aug 28 06:32:59 GMT 2025

Total time taken to generate the page: 0.11234 seconds