Re: Network Setup for Multiple Subnets [message #15439 is a reply to message #15434] |
Tue, 31 July 2007 07:49   |
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...
|
|
|