<html><head><meta http-equiv=Content-Type content="text/html; charset=UTF-8"><META name="Author" content="GroupWise WebAccess"><style type="text/css">
body p
{
margin: 0px;
}
</style></head><body style='font-family: Helvetica, Arial, sans-serif; font-size: 13px; '><div id="GroupWiseSection_1658903933000_Katerina.Bubenickova@bohnice.cz_309C3E3011C700008DC26BBA642C4992_" class="GroupWiseMessageBody">Hey Eliezer,</div><div class="GroupWiseMessageBody"><span><br></span></div><div class="GroupWiseMessageBody"><span>Thank you. Now I am ashamed for I have sent unintentionally </span><span class="GroupwiseReplyHeader">[solved] answer only to Alex yesterday.</span></div><div class="GroupWiseMessageBody"><br></div><div class="GroupWiseMessageBody"><div>I tried wireshark, disabled client persistent connections.</div><div>but the problem was system run out of filedescriptors.</div><div>4096 was not enough . I didn't notice it in the cache.log before<br></div><div><br></div><div>So I put into <br></div><div><code>/etc/security/limits.conf</code></div><div><code><br></code></div><div><code>line <br></code></div><div><code><code>* - nofile 65535</code></code></div><div><br><code><code><code></code></code></code></div><div><code><code><br></code></code></div><div><code><code>and into squid.conf:<br></code></code></div><div><div><code>max_filedescriptors 65535<br></code></div><div><br></div><div>systemctl restart squid<br></div><div>Now it is working all right.</div><div><br></div><div>Thank you for your effort,</div><div>now see I have a lot to learn.<br></div><div>I have to figure out the difference between forward and intercept proxy,</div><div>what the pinger daemon is and what workers are.<br></div><div><br></div><div>Two proxies makes faster performance for us, <br></div><div>On Debian 11 there is version Version 4.13</div><div>load balance is done by bind - two IPs have the name in A record</div><div><br></div><div>I will remove the `dns_v4_first` <br><code><code><code></code></code></code></div></div><div>Thank you all again for your support,</div><div><br></div><div><br></div><div>Katerina<br></div><br><span class="GroupwiseReplyHeader"></span></div><div class="GroupWiseMessageBody"><span class="GroupwiseReplyHeader"><br></span></div><div class="GroupWiseMessageBody"><span class="GroupwiseReplyHeader"><br></span></div><div class="GroupWiseMessageBody"><span class="GroupwiseReplyHeader"><br></span></div><div class="GroupWiseMessageBody"><span class="GroupwiseReplyHeader"><br></span></div><div class="GroupWiseMessageBody"><span class="GroupwiseReplyHeader"><br></span></div><div class="GroupWiseMessageBody"><span class="GroupwiseReplyHeader">>>> <ngtech1ltd@gmail.com> 07/26/22 9:40 PM >>><br></span>Hey Katerina,<br><br>Let’s try to understand the issue first.<br>The CentOS 6 squid version is what exactly? (squid -v )<br>What do you require from this proxy to do else then squidguard?<br>From what I understand it’s a simple forward proxy and not an intercept proxy.<br>It means that all DNS resolution is done on the proxy.<br>What localhost DNS daemon are you using? (Bind? unbound? other?)<br>What version of Squid are you running on the Debian 11 machine (squid -v)<br><br>The `dns_v4_first` configuration is obsolete.<br>The first thing to check is that if the pinger is up and running.<br>From what I remember Debian didn’t liked the pinger daemon.<br>Are you using workers in your configuration?<br>If you can share your current squid version and squid.conf we might be able to help you try to understand what’s going on.<br>The latest version of squid I have published for CentOS 6 was: squid-3.5.28-1.el6.x86_64.rpm<br><br>For a simple forward proxy you won’t need too much hardware but if you won’t be using workers this would be the expected behavior.<br>I believe that if you do not require special configurations we can compare another simple forward proxy just to make sure that<br>the core of the issue is something with squid.<br>(it’s possible to find the issue without using a comparison if enough details would be published)<br><br>How exactly is the proxy configured on the clients side?<br>Also is there any form of authentication happening or plain connections?<br>How do you load balance between the proxies?<br><br>From my experience 700 clients are OK on a single proxy however…<br>only if the load is not too high in the network level.<br>It can be that the maximum limit of open file descriptors is reached or couple other reasons.<br>Can you share couple pages of your cache manager output?<br>The next script:<br>https://gist.githubusercontent.com/elico/8790bdc835d8e9ecbc57e72fc31effc0/raw/60d140b0e772fa4f418779bfc27e4804a345ce23/dump-cache-mgr-to-file.sh<br><br>should dump all pages to stdout but don’t send the output on the public list please.<br>I will try to analyze the pages and see if there is something specific I can understand from them.<br>If the above output would not be sufficient I have another more in-depth script that should help us<br>to understand what is the core issue with this VM.<br><br>I am waiting for more details so I would be able to try and help you.<br><br>Eliezer<br><br>----<br>Eliezer Croitoru<br>NgTech, Tech Support<br>Mobile: +972-5-28704261<br>Email: mailto:ngtech1ltd@gmail.com<br>Web: https://ngtech.co.il/<br>My-Tube: https://tube.ngtech.co.il/<br><br>From: squid-users <squid-users-bounces@lists.squid-cache.org> On Behalf Of Katerina Bubenickova<br>Sent: Monday, 25 July 2022 11:40<br>To: squid-users@lists.squid-cache.org<br>Subject: [squid-users] slow TCP_TUNNEL<br><br>Hi,<br>We have 2 squid proxies running on Centos 6 which is very old (let's call them C1, C2) in DMZ.<br><br>I have installed Debian 11 bullseye and squid +squidguard, trying to use the same configuration (let's call it D1).<br>If I use this proxy for 1 pc station, all is ok.<br>If Iadded the proxy to dns as third proxy (C1+C2 + D1) or use one old proxy and the new one (C1+D1) the response of internet was very slow, unusable.<br><br>I tryed to fix it without success:<br>I added directive url_rewrite_children 200<br>I changed DNS from 8.8.8.8 to localhost<br>I turned off squid cache<br>I commented out squidguard<br>I migrated from one vmware server to another, better,<br>I added memory (16 GB) and CPU (6) ,<br>I added directive dns_v4_first on<br>There are no rules in D1 firewall<br><br>We have about 700 pc and the problem starts after 15-20 minutes after I add D1 into dns as proxy.<br>I can see it on our monitor Flowmon, where I can see value NPM response time. In normal state it is about 0.1s, when the problem arises it is up to 3s.<br>If I remove D1 from dns, all is ok after a while.<br><br>I tried to set IP of D1 the same as IP of C2 (of course C2 was power off) to test, whether the problem could be caused by some firewall between user pc and proxy, it doesn.t help<br><br><br>access.log of D1<br>1658483765.546 1622444 172.19.11.101 TCP_TUNNEL/200 3635 CONNECT epns.eset.com:443 - HIER_DIRECT/91.228.167.192 -<br>1658483765.546 900188 172.19.14.73 TCP_TUNNEL/200 4738 CONNECT prg.smartadserver.com:443 - HIER_DIRECT/185.86.138.16 -<br>1658483765.546 900246 172.19.14.73 TCP_TUNNEL/200 4102 CONNECT bidder.criteo.com:443 - HIER_DIRECT/178.250.0.165 -<br>1658483765.546 1008081 172.19.13.171 TCP_TUNNEL/200 12749428 CONNECT rr1---sn-jxnoxu-2gbl.googlevideo.com:443 - HIER_DIRECT/195.113.214.204 -<br>1658483765.546 901791 172.19.14.95 TCP_TUNNEL/200 2176 CONNECT pcb.kb.cz:443 - HIER_DIRECT/194.50.226.158 -<br>1658483765.546 900569 172.19.14.73 TCP_TUNNEL/200 7260 CONNECT adx.adform.net:443 - HIER_DIRECT/37.157.2.237 -<br>1658483766.547 935767 172.19.13.190 TCP_TUNNEL/200 110961 CONNECT http://www.seznam.cz:443 - HIER_DIRECT/77.75.77.222 -<br>1658483766.547 1620846 172.19.15.40 TCP_TUNNEL/200 3520 CONNECT epns.eset.com:443 - HIER_DIRECT/91.228.167.192 -<br>1658483766.547 900183 172.19.14.73 TCP_TUNNEL/200 4296 CONNECT etarget-emea.adnxs.com:443 - HIER_DIRECT/37.252.173.214 -<br>1658483767.548 1028965 172.19.15.2 TCP_TUNNEL/200 20796 CONNECT http://www.seznam.cz:443 - HIER_DIRECT/77.75.79.222 -<br>1658483767.548 959986 172.19.15.199 TCP_TUNNEL/200 7269 CONNECT fonts.googleapis.com:443 - HIER_DIRECT/142.251.36.106 -<br>1658483767.548 900027 172.19.14.73 TCP_TUNNEL/200 10544 CONNECT fastlane.rubiconproject.com:443 - HIER_DIRECT/69.173.144.141 -<br>1658483768.549 1625800 172.19.14.204 TCP_TUNNEL/200 3635 CONNECT epns.eset.com:443 - HIER_DIRECT/91.228.167.192 -<br>1658483768.549 903754 172.19.14.73 TCP_TUNNEL/200 5891 CONNECT region1.google-analytics.com:443 - HIER_DIRECT/216.239.34.36 -<br>1658483769.551 1017091 172.19.14.19 TCP_TUNNEL/200 4702 CONNECT secure-it.imrworldwide.com:443 - HIER_DIRECT/54.246.16.130 -<br>1658483769.551 976878 172.19.14.69 TCP_TUNNEL/200 1120200 CONNECT rr2---sn-jxnoxu-2gbl.googlevideo.com:443 - HIER_DIRECT/195.113.214.205 -<br>1658483769.551 1626332 172.19.15.189 TCP_TUNNEL/200 3635 CONNECT epns.eset.com:443 - HIER_DIRECT/91.228.167.192 -<br>1658483769.551 986881 172.19.14.69 TCP_TUNNEL/200 11983552 CONNECT rr5---sn-2gb7sn7r.googlevideo.com:443 - HIER_DIRECT/172.217.130.74 -<br><br>in access.log of C1 are the time numbers a lot lower:<br><br>1658491430.020 7 172.19.14.191 TCP_MISS/200 473 GET http://i5.c.eset.com/v1/auth/60064ADBC289880E8D77/updlist/31/eid/108/lid/108 - DIRECT/91.228.166.45 application/octet-stream<br>1658491430.025 6 172.19.15.72 TCP_MISS/200 473 GET http://i5.c.eset.com/v1/auth/60064ADBC289880E8D77/updlist/31/eid/108/lid/108 - DIRECT/91.228.166.45 application/octet-stream<br>1658491430.031 6 172.19.14.191 TCP_MISS/200 473 GET http://i5.c.eset.com/v1/auth/60064ADBC289880E8D77/updlist/32/eid/117876/lid/117876 - DIRECT/91.228.166.45 application/octet-stream<br>1658491430.038 430 172.19.14.71 TCP_MISS/200 4906 CONNECT v10.events.data.microsoft.com:443 - DIRECT/20.42.65.90 -<br>1658491430.076 40 172.19.14.191 TCP_MISS/200 473 GET http://i5.c.eset.com/v1/auth/60064ADBC289880E8D77/updlist/33/eid/10185/lid/10185 - DIRECT/91.228.166.45 application/octet-stream<br>1658491430.112 55 172.19.15.72 TCP_MISS/200 473 GET http://i5.c.eset.com/v1/auth/60064ADBC289880E8D77/updlist/32/eid/117876/lid/117876 - DIRECT/91.228.166.45 application/octet-stream<br>1658491430.155 30017 172.19.14.186 TCP_MISS/200 62553 CONNECT armmf.adobe.com:443 - DIRECT/2.23.8.158 -<br>1658491430.180 43 172.19.14.191 TCP_MISS/200 473 GET http://i5.c.eset.com/v1/auth/60064ADBC289880E8D77/updlist/34/eid/8576/lid/8576 - DIRECT/91.228.166.45 application/octet-stream<br>Tato e-mailová zpráva má pouze informativní charakter a vychází z
podkladů, které byly odesílateli předány nebo zaslány v minulosti. Obsah
této e-mailové zprávy, resp. jakékoliv případné právní jednání
vyplývající z této e-mailové zprávy, se nepovažuje za návrh na uzavření
smlouvy ve smyslu ustanovení § 1731 zákona č. 89/2012 Sb., občanského
zákoníku, v platném znění (dále jen „občanský zákoník“) nebo akceptaci
návrhu na uzavření smlouvy ve smyslu § 1740 občanského zákoníku, popř.
potvrzení uzavření smluvního vztahu, není-li odesílatelem uvedeno
výslovně jinak. Tato e-mailová zpráva je určena pouze pro osobní a
důvěrné užití určenými adresáty, tedy osobou (osobami), které (kterým)
je obsahově určena. Nejste-li osobou, které je tato zpráva určena,
upozorňujeme Vás, že jakékoliv šíření či kopírování této e-mailové
zprávy, či informace z ní, je zakázáno. Jestliže tuto e-mailovou zprávu
obdržíte nedopatřením, prosíme, oznamte tuto skutečnost odesílateli a
odstraňte zprávu samotnou i všechny její přílohy ze svého systému. <br><br>1658491430.227 235 172.19.15.144 TCP_MISS/200 3793 CONNECT ts.eset.com:443 - DIRECT/91.228.166.148 -<br>1658491430.276 73 172.19.15.72 TCP_MISS/200 473 GET http://i5.c.eset.com/v1/auth/60064ADBC289880E8D77/updlist/33/eid/10185/lid/10185 - DIRECT/91.228.166.45 application/octet-stream<br>1658491430.404 90 172.19.14.191 TCP_MISS/200 473 GET http://i5.c.eset.com/v1/auth/60064ADBC289880E8D77/updlist/35/eid/7351/lid/7351 - DIRECT/91.228.166.45 application/octet-stream<br><br><br>Now I am out of ideas what to test.<br><br>Thank you very much for your help,<br>Katerina<br><br><br><br><br><br>}<br><br></div><BR>
<i><font size="1" face="Times New Roman">Tato e-mailová zpráva má pouze informativní charakter a vychází z podkladů, které byly odesílateli předány nebo zaslány v minulosti. Obsah této e-mailové zprávy, resp. jakékoliv případné právní jednání vyplývající z této e-mailové zprávy, se nepovažuje za návrh na uzavření smlouvy ve smyslu ustanovení § 1731 zákona č. 89/2012 Sb., občanského zákoníku, v platném znění (dále jen „občanský zákoník“) nebo akceptaci návrhu na uzavření smlouvy ve smyslu § 1740 občanského zákoníku, popř. potvrzení uzavření smluvního vztahu, není-li odesílatelem uvedeno výslovně jinak. Tato e-mailová zpráva je určena pouze pro osobní a důvěrné užití určenými adresáty, tedy osobou (osobami), které (kterým) je obsahově určena. Nejste-li osobou, které je tato zpráva určena, upozorňujeme Vás, že jakékoliv šíření či kopírování této e-mailové zprávy, či informace z ní, je zakázáno. Jestliže tuto e-mailovou zprávu obdržíte nedopatřením, prosíme, oznamte tuto skutečnost odesílateli a odstraňte zprávu samotnou i všechny její přílohy ze svého systému. </font> <font size="1"> </font> </i>
<br>
<BR>
</body></html>