Tag Name cache_peer_access
Usage cache_peer_access cache-host allow|deny [!]aclname …

Description
Similar to ‘cache_peer_domain ‘ but provides more flexibility by using ACL elements.

The syntax is identical to ‘http_access’ and the other lists of ACL elements. See ‘http_access ‘ for further reference.

Default none

Example
The following example could be used, if we want all requests from a specific IP address range to go to a specific cache server (for accounting purposes, for example). Here, all the requests from the 10.0.1.* range are passed to proxy.squidconfiguration.com, but all other requests are handled directly.

Using acls to select peers,

acl myNet src 10.0.0.0/255.255.255.0
acl cusNet src 10.0.1.0/255.255.255.0
acl all src 0.0.0.0/0.0.0.0
cache_peer proxy.squidconfiguration.com parent 3128 3130
cache_peer_access proxy.squidconfiguration.com allow custNet
cache_peer_access proxy.squidconfiguration.com deny all