[squid-users] grouping multiple cache peers possible?

Alex Rousskov rousskov at measurement-factory.com
Wed Dec 22 15:27:34 UTC 2021


On 12/22/21 10:21 AM, roee klinger wrote:

> I have a group of about 6 cache peers:
> 
>     cache_peer 100.70.162.11 parent 16211 0 proxy-only default name=proxy16211
>     cache_peer 100.70.162.12 parent 16212 0 proxy-only default name=proxy16212
>     cache_peer 100.70.162.13 parent 16213 0 proxy-only default name=proxy16213
> 
>     cache_peer 100.70.163.11 parent 16311 0 proxy-only default name=proxy16311
>     cache_peer 100.70.163.12 parent 16312 0 proxy-only default name=proxy16312
>     cache_peer 100.70.163.13 parent 16313 0 proxy-only default name=proxy16313
> 
> 
> I would like to allow user162_acl access only to the peers that ...
> have a name that starts with proxy162

According to documentation, a peername_regex ACL can do what you want.

Alex.


More information about the squid-users mailing list