<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hey Eliezer,<div><br></div><div>Thanks, but actually what I want to achieve is not dynamic load balancing, I want each user to always go to a predefined proxy.</div><div><br></div><div>For a failover solution, I will have an outside program checking for failed proxies, and then I will remove them from the list and send the user to a different proxy while I handle the failed ones.</div><div><br></div><div>Is Haproxy good for that it is Squid in the way I proposed OK?</div><div><br></div><div>Thanks</div><div><br><div dir="ltr"><blockquote type="cite"><br>On Dec 10, 2020, at 23:14, Eliezer Croitor <ngtech1ltd@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class="WordSection1"><p class="MsoNormal">You should use Haproxy in a Fail-over setup.<o:p></o:p></p><p class="MsoNormal">Squid is great but it’s possible that Haproxy does this much better theses days then Squid.<o:p></o:p></p><p class="MsoNormal">You can leave the authentication on the Squid servers and use the Haproxy as TCP Load balancer.<o:p></o:p></p><p class="MsoNormal">If you need the clients Original IP address you can use the PROXY protocol to send these details between the haproxy and squid.<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Eliezer<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">----<o:p></o:p></p><p class="MsoNormal">Eliezer Croitoru<o:p></o:p></p><p class="MsoNormal">Tech Support<o:p></o:p></p><p class="MsoNormal">Mobile: +972-5-28704261<o:p></o:p></p><p class="MsoNormal">Email: <a href="mailto:ngtech1ltd@gmail.com">ngtech1ltd@gmail.com</a><o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b>From:</b> squid-users <squid-users-bounces@lists.squid-cache.org> <b>On Behalf Of </b>roee klinger<br><b>Sent:</b> Thursday, December 10, 2020 8:39 PM<br><b>To:</b> squid-users@lists.squid-cache.org<br><b>Subject:</b> Re: [squid-users] Squid with more than 128 ports?<o:p></o:p></p></div><p class="MsoNormal"><o:p> </o:p></p><div><p class="MsoNormal">Hey Anthony,<o:p></o:p></p><div><p class="MsoNormal"><o:p> </o:p></p><div><p class="MsoNormal">Giving this a second thought, I believe I didn't explain myself correctly.<o:p></o:p></p></div></div><div><p class="MsoNormal"><o:p> </o:p></p></div><div><p class="MsoNormal">I have 5 Squid servers, each listening on 80 ports, I would like to add another<o:p></o:p></p></div><div><p class="MsoNormal">Squid server in the middle of the client and these servers to authenticate users<o:p></o:p></p></div><div><p class="MsoNormal">before sending them to their ports. I already have ACL controls and auth control tools<o:p></o:p></p></div><div><p class="MsoNormal">which I wrote and are working fine.<o:p></o:p></p></div><div><p class="MsoNormal"><o:p> </o:p></p></div><div><p class="MsoNormal">My question is regarding how to configure this, I have found this configuration online <o:p></o:p></p></div><div><p class="MsoNormal">but I am not sure how it will work performance-wise with 500+ proxies (could be 1000s in<o:p></o:p></p></div><div><p class="MsoNormal">the future):<o:p></o:p></p></div><div><p class="MsoNormal"><o:p> </o:p></p></div><div><blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p class="MsoNormal"><code><span style="font-size:10.0pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in">http_port 3128 name=port_3128</span></code><span style="font-size:10.0pt;font-family:Consolas;border:none windowtext 1.0pt;padding:0in"><br><code><span style="font-family:Consolas">http_port 3127 name=port_3127</span></code><br><code><span style="font-family:Consolas">nonhierarchical_direct off</span></code><br><code><span style="font-family:Consolas">acl port_3128_acl myportname port_3128</span></code><br><code><span style="font-family:Consolas">acl port_3127_acl myportname port_3127</span></code><br><code><span style="font-family:Consolas">always_direct deny port_3128_acl</span></code><br><code><span style="font-family:Consolas">always_direct deny port_3127_acl</span></code><br><code><span style="font-family:Consolas">never_direct allow port_3128_acl</span></code><br><code><span style="font-family:Consolas">never_direct allow port_3127_acl</span></code><br><code><span style="font-family:Consolas"># 3128</span></code><br><code><span style="font-family:Consolas">cache_peer proxy1 parent 3128 0 proxy-only default name=proxy3128</span></code><br><code><span style="font-family:Consolas">cache_peer_access proxy3128 allow port_3128_acl</span></code><br><code><span style="font-family:Consolas">cache_peer_access proxy3128 deny all</span></code><br><code><span style="font-family:Consolas"># 3127</span></code><br><code><span style="font-family:Consolas">cache_peer proxy2 parent 3128 0 proxy-only default name=proxy3127</span></code><br><code><span style="font-family:Consolas">cache_peer_access proxy3127 allow port_3127_acl</span></code><br><code><span style="font-family:Consolas">cache_peer_access proxy3127 deny all</span></code></span><o:p></o:p></p></blockquote><pre style="vertical-align:baseline;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;box-sizing:inherit;max-height:600px;border-radius:5px;overflow:auto"><span style="font-family:Consolas"><o:p> </o:p></span></pre><p class="MsoNormal">Combine these 2000+ lines in squid.conf with 2 external ACLs and a custom authenticator,<o:p></o:p></p></div><div><p class="MsoNormal">can this cause a hit on performance or should it be no problem for squid to handle?<o:p></o:p></p><pre style="vertical-align:baseline"><span style="font-family:Consolas"><o:p> </o:p></span></pre></div><div><div><pre style="vertical-align:baseline;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;box-sizing:inherit;max-height:600px;border-radius:5px;overflow:auto"><span style="font-family:Consolas"><o:p> </o:p></span></pre></div><div><pre style="vertical-align:baseline"><span style="font-family:Consolas"><o:p> </o:p></span></pre></div></div><div><p class="MsoNormal"><o:p> </o:p></p></div></div><p class="MsoNormal"><o:p> </o:p></p><div><div><p class="MsoNormal">On Thu, Dec 10, 2020 at 2:29 PM Antony Stone <<a href="mailto:Antony.Stone@squid.open.source.it">Antony.Stone@squid.open.source.it</a>> wrote:<o:p></o:p></p></div><blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p class="MsoNormal">On Thursday 10 December 2020 at 13:02:19, roee klinger wrote:<br><br>> Hello,<br>> <br>> We have a few Squid proxy servers with a total of around 400 ports<br><br>What do you mean by that?  What are you using 400 ports for?<br><br>> We have decided that we want to add a cloud instance in the middle of the<br>> connections, that will authenticate users and only then send them to the<br>> squid instance.<br><br>What authentication method / protocol do you want to use?<br><br>> Is it a smart idea to use Squid for this use case or just use a different<br>> proxy software that doesn't have this limitation?<br><br>I think the best starting point is to ask what sort of authentication you want <br>to perform (ie: what is the authoritative system which holds the information <br>about who can authenticate and who cannot), then you can decide on the best <br>software to use to do that in front of Squid.<br><br><br>Antony.<br><br>-- <br>Under UK law, no VAT is charged on biscuits and cakes - they are "zero rated".  <br>Chocolate covered biscuits, however, are classed as "luxury items" and are <br>subject to VAT.  McVitie's classed its Jaffa Cakes as cakes, but in 1991 this <br>was challenged by Her Majesty's Customs and Excise in court.<br><br>The question which had to be answered was what criteria should be used to <br>class something as a cake or a biscuit.  McVitie's defended the classification <br>of Jaffa Cakes as a cake by arguing that cakes go hard when stale, whereas <br>biscuits go soft.  It was demonstrated that Jaffa Cakes become hard when stale <br>and McVitie's won the case.<br><br>                                                   Please reply to the list;<br>                                                         please *don't* CC me.<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" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><o:p></o:p></p></blockquote></div></div></div></blockquote></div></body></html>