[squid-users] Getting direct/never_direct working

From: Matthew Horoschun <mhoroschun@dont-contact.us>
Date: Mon, 8 Dec 2003 12:28:50 +1100

Hi All,

I've got a single upstream non-ICP parent that I want to use for
everything except for local servers.

I'm doing the following:

cache_peer proxy.upstream.com.au parent 8080 0
no-query default
never_direct deny local_servers
never_direct allow all
always_direct allow local_servers
prefer_direct off
cache_peer_access proxy.upstream.com.au deny local_servers
acl local_servers dstdomain .localdomain.com.au
.anotherlocaldomain.com.au

But this always uses the upstream proxy, even for local_servers. If I
remove 'prefer_direct off', it always uses DIRECT even for external
stuff.

Any ideas what I'm doing wrong?

Thanks

Matthew.

--
Matthew Horoschun
Network Administrator
CanPrint Communications Pty. Ltd.
Received on Sun Dec 07 2003 - 18:29:12 MST

This archive was generated by hypermail pre-2.1.9 : Thu Jan 01 2004 - 12:00:06 MST