Search squid archive

Re: grouping multiple cache peers possible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey Alex,

Thank you for your help, I tried reading the documentation but I cannot get it to work, and I am not sure how to debug this honestly.

I did:
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
acl peer_group_162 peername_regex -i proxy162.*\b

Followed by:
cache_peer_access peer_group_162 allow admin162

but I got an error:
ERROR: /etc/squid/conf.d/admin_allow_peer.conf, line 4: No cache_peer 'peer_group_162'

Should I use http_access instead? I am not sure how to use it, because peer_group_162 is an ACL, not a cache_peer.

Also, is my regex entry correct? I am not sure if \b is supported, and if I should add the -i flag or not.

Thanks alot.

On Wed, Dec 22, 2021 at 5:27 PM Alex Rousskov <rousskov@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
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.
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux