Routing Question

MasterTH

Renowned Member
Jun 12, 2009
239
8
83
www.sonog.de
Hi Community,

i've got a question and i hope someone can help me. Maybe this is an issue which would be useful for others too.


lets start:
got two openvz servers, one of them has an external ip and an internal ip.
the other server should use the ip of the first server to access the internet.

tried already:
route add ip-first-ser-ver dev venet0
route add default gw ip_first_ser_ver

but i cannot ping external servers. The first server is vpn server which always allows ip_forward and it works for the vpn clients.
masquerading is also active
iptables -t nat -A POSTROUTING -j MASQUERADE

traceroute show that he still want to go over the host


Has somebody an idea?
 
Last edited: