Hello Phillip!
As long as I know this is impossible with single instance of Squid.
Squid has no rules to direct different queries to different interfaces.
Try to search lists/docs for tcp_outgoing_address - it order squid to use
given address for outgoing connections.
may be I'm wrong...
Without squid everything is simple. You could use advanced routing facilities,
appeared in kernel 2.2. Find module iproute2 - it will contain all necessary
information. There are number of HOW-TOs on the net dedicated to iproute2. They
are more easy/helpful than bundled documentation.
As third option - You could try to setup two ip addresses on you dial-in box -
one for each group of users. Routing rules will be quite straightforward. And
then try to setup transparent proxies for both interfaces. and again you will
run into need of two squid instances If you will want web cache.
Try OOPS Proxy Server - I have some problems with my server/boss - so I can't
move from squid :-( As I heard Opps bit more intellectual than Squid. Main
difference - is the way cache organized on disk. IIRC Oops is freeware
(possibly open source) with commercial support line (author claims he could add
any feature you may need for some amount of money :-).
Phillip Morgan wrote:
>
> Hi,
>
> I am running aslackware linux system with kernel 2.2.18, 384mb RAM,
> Squid2.4stable1, apache 1.3.14, and bind 8.1.2.
>
> I'd like to split some users off to a different gateway. Currently, the
> default gateway is a cisco 1003 router. Some customers I want to put
> onto a different machine which has a second connection to the Internet.
>
> The proxy part is preferred for caching of objects to reduce cost but is
> not mandatory. If this scenario is possible without squid then that will
> do if there is no other way.
>
> Eg.
>
> Current scenario
>
> +---------+ +--------+ +----------+
> | Client1 | ----------- | proxy1 | ------------ | Gateway1 | ------>
> Cable 1
> +---------+ +--------+ +----------+
>
> Required setup
>
> +=============+
> : :
> +---------+ : +--------+ : +----------+
> | Client1 | ----------- | proxy1 | ------------ | Gateway1 | ------>
> Cable 1
> +---------+ : +--------+ : +----------+
> : :
> +---------+ : +--------+ : +----------+
> | Client2 | ----------- | proxy2 | ------------ | Gateway2 | ------>
> Cable 2
> +---------+ : +--------+ : +----------+
> : :
> +=============+
> Single copy of Squid -----^
>
> Gateway1 is a cisco 1003. Gateway2 is a Win2000 system which is
> connected to another internet connection
>
> Eg.
>
> Customer dials into machine 1 (192.168.1.2 - All customers dial into the
> ppp machine regardless of which connection to the Internet they will
> eventually end up on), which points to gateway1 at 192.168.1.1 through
> the squid proxy 'proxy1' as defined in his/her browser. Selected
> customers are told to configure their browser for 'proxy2' which points
> to 192.168.1.3 and then out through that machine to the internet.
>
> If we don't use a proxy, how then can we tell specific customers
> (logically), to route down a different connection?
>
> Any ideaas?
>
> Phillip
begin:vcard
n:Filiapau;Ihar
tel;pager:+375 (0) 17 2850000#6683
tel;fax:+375 (0) 17 2841537
tel;home:+375 (0) 17 2118441
tel;work:+375 (0) 17 2841371
x-mozilla-html:TRUE
url:www.iph.to
org:Enformatica Ltd.;Linux Developement Department
adr:;;Kalinine str. 19-18;Minsk;BY;220012;Belarus
version:2.1
email;internet:[EMAIL PROTECTED]
title:Software Developer
note:(none)
x-mozilla-cpt:;18368
fn:Philips
end:vcard