<div dir="ltr"><div>Hi Amos, <br></div><div><br></div><div>Thanks for the response.</div><div><br></div><div>However, what do you want to happen when that user's dedicated peer is unavailable? <br></div><div>Can it be routed to another peer if a dedicated peer is unavailable? because each peer is accessed by a different username and password. If there is an option to route then I will keep a backup peer(Peer4) so if any one of the peers(Peer1,Peer2,Peer3) is unavailable it can route to the backup peer and once the unavailable peer become available then traffic should auto route to them from backup peer. <br></div><div><br></div><div>If there is no option that fits as I explained above then I want to stop all access for them.<br></div><div><br></div><div>Are you wanting to keep this behaviour?</div><div>I don't want to use the round-robin behaviour. I want to route requests to dedicated Peer/Client.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 2, 2020 at 3:19 PM Prem Chand <<a href="mailto:premchand142@gmail.com">premchand142@gmail.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"><div dir="ltr"><div><br></div><div>Hi,</div><div><br></div><div><div>I need to redirect my clients requests to different Cache_peers using username and passwords through my proxy. Below is the rough sketch. Can someone suggest to me how I can achieve this?<br><br>Client1(Username1:password1) ->Proxy:443 -> Cache_peer:3218 <br>Client 2(Username2:password2)->Proxy:443-> Cache_peer:3219</div><div>.</div><div>.</div><div>.</div><div>.</div><div><br></div><div>This is my current configuration, I'm doing round robin through cache_peers when authenticated with a single username and password in /etc/squid/squidpasswdfile file<br></div><div><br></div><div>auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/squidpasswdfile<br>auth_param basic realm proxy<br>acl auth_users proxy_auth REQUIRED <br>http_access allow auth_users<br>http_access deny all<br>cache_peer        Peer1   parent  3218 0 round-robin no-query weight=1 connect-fail-limit=1<br>cache_peer   Peer2   parent  3219 0 round-robin no-query weight=1 connect-fail-limit=1 <br>cache_peer  Peer3   parent  3219 0 round-robin no-query weight=1 connect-fail-limit=1<br><br></div><div>Thanks & Regards</div><div>Premchand.<br></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">prem</div>