Squid provides the acl login or username.
should have maybe ident.
you will need to include a usernames file which contains them.
I believe a note in a helper should do that better.
Eliezer
On Sun, Jan 10, 2021, 17:33 roee klinger <roeeklinger60@xxxxxxxxx> wrote:
Hey,_______________________________________________I am trying to figure out the best way to select cache peers based on the client username, I have read extensively but I cannot figure out the best way to do it.so far I have:external_acl_type user_whitelist_external children-max=20 ttl=300 %>lp %>a script.shacl whitelisted_users external user_whitelist_externalhttp_access allow whitelisted_usersand:ideally, script.sh checks if the request is authinticated and if it is, it selects the cache peer to use, is there some kind of way to achieve this with "Defined keywords" to select which cache peer to use or am I looking at this the wrong way?nonhierarchical_direct offnever_direct allow allcache_peer 192.168.8.1 parent 101 0 proxy-only default name=proxy1cache_peer_access proxy1 allow whitelisted_userscache_peer_access proxy0.2 deny allcache_peer 192.168.8.2 parent 102 0 proxy-only default name=proxy2cache_peer_access proxy2 allow whitelisted_userscache_peer_access proxy0.3 deny allWhat would be the best way to accomplish this?
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