Routing Question

MasterTH

Renowned Member
Jun 12, 2009
224
7
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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!