Re: [squid-users] Fwd: cache_peer_access by dynamic ACL

2023-04-26 Thread Alexeyяр Gruzdov
Thank you very much for you answer and explanation Yep, I don’t use name “proxy” for annotations, it was just for example only . Bets regards! Alexg On Wed, 26 Apr 2023 at 18:34, Alex Rousskov < rouss...@measurement-factory.com> wrote: > On 4/26/23 08:08, Alexeyяр Gruzdov wrote: > > Oh... Loo

Re: [squid-users] Fwd: cache_peer_access by dynamic ACL

2023-04-26 Thread Alex Rousskov
On 4/26/23 08:08, Alexeyяр Gruzdov wrote: Oh... Looks like I just need to send as answer the list of my policy acl, for example user1 wanted to go over peer1 and peer3 the answer from external script must be like  "OK proxy=peer1 proxy=peer3"  and looks like it works well like I need. User wil

Re: [squid-users] Fwd: cache_peer_access by dynamic ACL

2023-04-26 Thread Alexeyяр Gruzdov
Oh... Looks like I just need to send as answer the list of my policy acl, for example user1 wanted to go over peer1 and peer3 the answer from external script must be like "OK proxy=peer1 proxy=peer3" and looks like it works well like I need. User will go over peer1 and peer3 only by round-robin.

Re: [squid-users] Fwd: cache_peer_access by dynamic ACL

2023-04-26 Thread Alexeyяр Gruzdov
Hello! Yes! Thank you! One more question pls: For example I have five of cache_peers and ACL associated with some cache peer. 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. F

Re: [squid-users] Fwd: cache_peer_access by dynamic ACL

2023-04-24 Thread Alex Rousskov
On 4/23/23 14:28, Alexeyяр Gruzdov wrote: One more may be last thing:  - I found the strange behavior  - if I make changes at my ext ACL script (its python ) and then "squid -k reconfigure"  then I can see that my script appears in the "TOP" of process and loads CPU to 100% Check how your AC

Re: [squid-users] Fwd: cache_peer_access by dynamic ACL

2023-04-24 Thread Amos Jeffries
On 24/04/2023 6:28 am, Alexeyяр Gruzdov wrote: Oh Guys ! you are wizards. Works like I wanted.. One more may be last thing:  - I found the strange behavior  - if I make changes at my ext ACL script (its python ) and then "squid -k reconfigure"  then I can see that my script appears in

Re: [squid-users] Fwd: cache_peer_access by dynamic ACL

2023-04-23 Thread Alexeyяр Gruzdov
Oh Guys ! you are wizards. Works like I wanted.. One more may be last thing: - I found the strange behavior - if I make changes at my ext ACL script (its python ) and then "squid -k reconfigure" then I can see that my script appears in the "TOP" of process and loads CPU to 100%, if to re

Re: [squid-users] Fwd: cache_peer_access by dynamic ACL

2023-04-23 Thread Amos Jeffries
On 23/04/2023 5:27 pm, Alexeyяр Gruzdov wrote: Hello Guys! Thank you very much! For now all works like I needed! But I have an one more  questions about how I could to use the kv-pair: ... and then ACL with “note proxy all “ But how the kv-pair must to be looked for this my tag ? I have tried

Re: [squid-users] Fwd: cache_peer_access by dynamic ACL

2023-04-22 Thread Alexeyяр Gruzdov
Hello Guys! Thank you very much! For now all works like I needed! But I have an one more questions about how I could to use the kv-pair: >From wiki : Defined keywords: user= The users name (login) password= The users password (for login= cache_peer option)

Re: [squid-users] Fwd: cache_peer_access by dynamic ACL

2023-04-20 Thread Alex Rousskov
On 4/20/23 16:18, Amos Jeffries wrote: On 21/04/2023 6:31 am, Alex Rousskov wrote: On 4/20/23 13:14, Alexeyяр Gruzdov wrote: Tell me please If I right understood I could to get answer like "name=value" from my ACL ext script, instead of "OK" or "ERR", right? Not "instead", but in addition to

Re: [squid-users] Fwd: cache_peer_access by dynamic ACL

2023-04-20 Thread Amos Jeffries
On 21/04/2023 6:31 am, Alex Rousskov wrote: On 4/20/23 13:14, Alexeyяр Gruzdov wrote: Tell me please If I right understood I could to get answer like "name=value" from my ACL ext script, instead of "OK" or "ERR", right? Not "instead", but in addition to either OK or ERR. Unfortunately, our d

Re: [squid-users] Fwd: cache_peer_access by dynamic ACL

2023-04-20 Thread Alex Rousskov
On 4/20/23 13:14, Alexeyяр Gruzdov wrote: Tell me please If I right understood I could to get answer like "name=value" from my ACL ext script, instead of "OK" or "ERR", right? Not "instead", but in addition to either OK or ERR. Unfortunately, our documentation of the external ACL helper proto

[squid-users] Fwd: cache_peer_access by dynamic ACL

2023-04-20 Thread Alexeyяр Gruzdov
Ok. The last issues fixed. Thank you ! Tell me please If I right understood I could to get answer like "name=value" from my ACL ext script, instead of "OK" or "ERR", right? And does it means - I could to get answer depends from what users authorises in to proxy. For example: If user "Jon" - th