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

From: Vienkarsi Jautajums <jautajums@dont-contact.us>
Date: Sun, 02 Sep 2001 11:26:02 +0300

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.

    Well after I had to implement point 2 in squid I tried
to do several different things ..

cache_peer specific-proxy parent 8128 7 no-query
cache_peer_domain specific-proxy specific_something.com

-- didn’t work :( .. squid still accessed directly those IPs

acl specific dstdomain specific_something.com
never_direct allow specific
never_direct deny latvia
never_direct allow all

-- didn’t work either

  Maybe someone could help me understand what’s done wrong.

PS

I’m reading mailing list through web archive so please reply with cc:
jautajums@hotmail.com

wbr
Uldis

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Received on Sun Sep 02 2001 - 02:26:04 MDT

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