<div dir="ltr">Hello! <br>Yes! <br>Thank you! <br><br><br>One more question pls: <br><br>For example I have five of cache_peers and ACL associated  with some cache peer.<br>As you know - I used the my external ACL script and now I can put the policy to answer fo my script and squid will get an answer and used the correct ACL for username. <br>For example answer is  "OK  proxy=peer1"  and user will be used the cache_peer1, or if "OK proxy=all" and user will go over all of cache_peers by round-robin.<br>All works well. <br>But how I can put something like a list of ACL for user ?  for example  I want that some one user can go over peer1 and peer3 only, by round robin, but will be denied over peer2. peer4, peer5. Of course better using external ACL (as DB ). What do you think? <div><br><br><br><br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пн, 24 апр. 2023 г. в 18:07, Alex Rousskov <<a href="mailto:rousskov@measurement-factory.com">rousskov@measurement-factory.com</a>>:<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 4/23/23 14:28, Alexeyяр Gruzdov wrote:<br>
<br>
> One more may be last thing:  - I found the strange behavior  - if I make <br>
> changes at my ext ACL script (its python ) and then "squid -k <br>
> reconfigure"  then I can see that my script appears in the "TOP" of <br>
> process and loads CPU to 100%<br>
<br>
Check how your ACL script reacts to stdin closure/EOF. The script should <br>
quit but probably does not. Same for any stdin reading errors. On EOF, <br>
the script should use exit code zero. All these things are easy to test <br>
on the command line (without Squid).<br>
<br>
Alex.<br>
<br>
> вс, 23 апр. 2023 г. в 16:36, Amos Jeffries <<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a> <br>
> <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>>>:<br>
> <br>
>     On 23/04/2023 5:27 pm, Alexeyяр Gruzdov wrote:<br>
>      > Hello Guys!<br>
>      > Thank you very much! For now all works like I needed!<br>
>      ><br>
>      > But I have an one more  questions about how I could to use the<br>
>     kv-pair:<br>
>     ...<br>
>      > and then ACL with “note proxy all “<br>
>      > But how the kv-pair must to be looked for this my tag ?<br>
>      ><br>
>      > I have tried to get answer from my ext script like<br>
>      > “OK”<br>
>      > “proxy=all”<br>
>      ><br>
>      > But looks like it’s not correct<br>
>      ><br>
> <br>
>     This part of the instructions were missed:<br>
>     <a href="https://wiki.squid-cache.org/Features/AddonHelpers#helper-protocols" rel="noreferrer" target="_blank">https://wiki.squid-cache.org/Features/AddonHelpers#helper-protocols</a><br>
>     <<a href="https://wiki.squid-cache.org/Features/AddonHelpers#helper-protocols" rel="noreferrer" target="_blank">https://wiki.squid-cache.org/Features/AddonHelpers#helper-protocols</a>><br>
>     "<br>
>     For every line sent by Squid exactly one line is expected back. Some<br>
>     script language such as perl and python need to be careful about the<br>
>     number of newlines in their output.<br>
>     "<br>
> <br>
>     If your helper received something like this (with concurrency<br>
>     channel-id<br>
>     "1"):<br>
> <br>
>        "1 bob 192.0.2.1"<br>
> <br>
>     It should produce a line like:<br>
>         "1 OK proxy=all"<br>
> <br>
>     If no concurrency channel-id is received, then output is the same but<br>
>     without sending channel-id back and MUST be sent in same order as<br>
>     received.<br>
> <br>
>     I do recommend using concurrency. It can help further debug issues with<br>
>     helpers responding incorrectly.<br>
> <br>
>     HTH<br>
>     Amos<br>
> <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>
>     <mailto:<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>
>     <<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a>><br>
> <br>
> <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>
<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>