Re: [squid-users] Squid with several parent proxys/ cache_peer_access

From: Cameron Lowe <c_lowe@dont-contact.us>
Date: Mon, 03 Sep 2001 05:51:04 +1000

Vienkarsi Jautajums wrote:
> Hi!
>
> I've got Squid 2.3STABLE4 running on FreeBSD box and trying to
> accomplish such task:
>
> Configure proxy to satisfy users requests in this manner:
>
> 1. Some IP address ranges squid access directly (with small excl. watch
> point 2)
> 2. Some ip addresses in IP range defined in point 1. squid should access
> through "specific parent proxy"
> 3. For all other requests squid access "default proxy"
>
> Point 2. appeared only this week, so before that there were just points
> 1 and 3. and they were realized:
>
> ---some fragments from squid.conf -------------[ begin ]--------------
> cache_peer default-proxy parent 8000 0 default no-query
> .....
> acl latvia dst "/usr/local/etc/squid/lvaddr"
> .....
> never_direct deny latvia
> never_direct allow all
> ---some fragments from squid.conf --------------[ end ]---------------
>
> for some time it worked just fine.
> Probably its not the best way to build such config because when
> default-proxy goes down squid don't access pages directly those who were
> supposed to be accessed through that proxy, I think its possible to
> config that way but cant find out how, maybe that could be helped too.

You could try using the prefer_direct option in squid.conf.

-- 
    (*)(*)
      ||
    \____/
Cameron Lowe
c_lowe@bigpond.com
Received on Sun Sep 02 2001 - 13:51:13 MDT

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