Synopsis
The syntax is identical to http_access and the other lists of ACL elements. See http_access for further reference.
Arguments
allow/deny
|
Allow or deny on matching the acl
|
aclname
|
Access list to be allowed/denied on match
|
Example(s)
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 |