[squid-users] cache peer choice based on acl

From: Nuno Miguel Pais Fernandes <npf@dont-contact.us>
Date: Fri, 09 Jul 2004 16:54:21 +0100

Hello,

I'm configuring a proxy with 2 parents like:

cache_peer 127.0.0.1 parent 8080 0 no-query default
cache_peer 127.0.0.2 parent 8080 0 no-query default

I'm trying to send requests to diferent parents based on acl
(checknofilter). If it matches checknofilter it should be sent to
127.0.0.2 and if it doesn't should be sent to 127.0.0.1

My conf has:
acl checknofilter src 192.168.1.0/255.255.255.0
cache_peer_access 127.0.0.2 allow checknofilter
cache_peer_access 127.0.0.2 deny all
cache_peer_access 127.0.0.1 allow all
never_direct allow all

Thanks
Nuno Fernandes

-- 
Nuno Miguel Pais Fernandes <npf@eurotux.com>

Received on Fri Jul 09 2004 - 09:54:25 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Aug 01 2004 - 12:00:01 MDT