Squid proxy server in a VPS [message #30099] |
Sat, 10 May 2008 14:58 |
cunz
Messages: 1 Registered: May 2008
|
Junior Member |
|
|
Hi,
I'm very new to OpenVZ. I'm trying to set up a proxy server inside a VPS.
HN has 2 NICs:
eth1 connected to an internet router
eth0 connected to LAN
I set up several VPS, each one running a service (e.g. http, mail, ftp,...)
all these need only their venet0 with private ips ( SNATted to access internet through eth1, and they all work.
Among these, i'd like to set up another VPS running Squid proxy server to allow LAN internet navigation.
Actually my proxy VPS has 2 venet, one (venet0:0) for internet access (with private ip SNATted), the other one (venet0:1) with a LAN ip.
how can i make LAN outbound traffic to be routed in this way ?:
LAN -> eth0 -> venet0:0 -> (squid proxy) -> venet0:1 -> eth1 -> internet router ?
Actually, I can reach veth0:0 from inside the LAN, can reach internet from inside the VPS, but don't know how to say HN to route traffic coming from LAN to venet0:0.
Thank you in advance for your attention.
|
|
|
|