Re: [squid-users] forwarding to two proxy server

From: Colin Campbell <sgcccdc@dont-contact.us>
Date: Mon, 30 Sep 2002 10:03:29 +1000 (EST)

Hi,

On Sun, 29 Sep 2002, Hasan, Irfan wrote:

> I want to forward web traffic to two different proxy server.
> All the traffic for:
> *domain1.com go to proxy1.com
> *domain2.com go to proxy2.com
> anything else go direct to Internet
>
> ------------------------------------------------
> acl dta dstdomain .domain1.com
> acl dsh dstdomain .domain2.com
>
> cache_peer proxy1.com parent 8080 0 no-query default
> cache_peer_domain *.domain1.com
>
> cache_peer proxy2.com parent 8080 0 no-query default
> cache_peer_domain *.domain2.com
>
> always_direct allow !dsh
> never_direct allow dsh
>
> always_direct allow !dta
> never_direct allow dta
> ---------------------------------------
> Traffic can go to Internet and domian1.com but traffic is not
> going to domain2.com. Hope someone can help me

Thre first "always_direct" will match dta traffic so the later dta rules
will not be used. You probably want something like:

always_direct deny dsh
always_direct deny dta
always_direct allow all

Colin

--
Colin Campbell
Unix Support/Postmaster/Hostmaster
CITEC
+61 7 3227 6334
Received on Sun Sep 29 2002 - 18:08:42 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:10:27 MST