<div dir="ltr">Hey Alex,<div><br></div><div>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.</div><div><br></div><div>I did:</div><div>cache_peer 100.70.162.11 parent 16211 0 proxy-only default name=proxy16211</div><div>cache_peer 100.70.162.12 parent 16212 0 proxy-only default name=proxy16212</div><div>cache_peer 100.70.162.13 parent 16213 0 proxy-only default name=proxy16213</div><div>acl peer_group_162 peername_regex -i proxy162.*\b<br></div><div><br></div><div>Followed by:</div><div>cache_peer_access peer_group_162 allow admin162<br></div><div><br></div><div>but I got an error:</div><div>ERROR: /etc/squid/conf.d/admin_allow_peer.conf, line 4: No cache_peer 'peer_group_162'<br></div><div><br></div><div>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.</div><div><br></div><div>Also, is my regex entry correct? I am not sure if \b is supported, and if I should add the -i flag or not.</div><div><br></div><div>Thanks alot.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 22, 2021 at 5:27 PM Alex Rousskov <<a href="mailto:rousskov@measurement-factory.com">rousskov@measurement-factory.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 12/22/21 10:21 AM, roee klinger wrote:<br>
<br>
> I have a group of about 6 cache peers:<br>
> <br>
>     cache_peer 100.70.162.11 parent 16211 0 proxy-only default name=proxy16211<br>
>     cache_peer 100.70.162.12 parent 16212 0 proxy-only default name=proxy16212<br>
>     cache_peer 100.70.162.13 parent 16213 0 proxy-only default name=proxy16213<br>
> <br>
>     cache_peer 100.70.163.11 parent 16311 0 proxy-only default name=proxy16311<br>
>     cache_peer 100.70.163.12 parent 16312 0 proxy-only default name=proxy16312<br>
>     cache_peer 100.70.163.13 parent 16313 0 proxy-only default name=proxy16313<br>
> <br>
> <br>
> I would like to allow user162_acl access only to the peers that ...<br>
> have a name that starts with proxy162<br>
<br>
According to documentation, a peername_regex ACL can do what you want.<br>
<br>
Alex.<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div>