Re: Inquiry

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 14 Jan 2000 21:08:42 +0100

Panagiotis Malakoudis wrote:

> i am looking for a way that when the squid server receives a request from
> net say : 10.1.1.0/24, it will make a query on the apropriate server using
> the address 10.0.1.2/24, but when it receives it from 10.0.2.0/24 it should
> make the querry using the ip address 10.0.2.2/24.
>
> The server will have the ip address of 10.0.1.2/16 (which will be the
> address the clients will only now).
>
> Is that possible?. Can it be accomplished in cooperation with another tool?

It is possible with a little cludge.

One Squid in it self cannot do it, it needs a little help. What you can
do is to have another instance of Squid running on the 10.0.2.2 IP
address in proxy-only mode (no_cache deny all), and have the 10.0.1.2
instance use the 10.0.2.2 instance as a parent for all requests from the
10.0.2.0/24 network. Both instances can reside to the same physical
machine if it has access to both networks, or on two different machines.

--
Henrik Nordstrom
Squid hacker
Received on Fri Jan 14 2000 - 15:04:09 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:24 MST