*nix Thread, Squid slow web access in Technical; Hi,
I've spent the last week setting up Ubuntu, Squid and dansguardian. I was making good progress up to yesterday. ...
Hi,
I've spent the last week setting up Ubuntu, Squid and dansguardian. I was making good progress up to yesterday. With just the one group Danguardian was filtering access. Today as I was going to setup more groups I've hit a big issue! It seems that any web traffic going through Squid is incredibly slow or times out. There's only me using our network (at most two of us), I'm hitting squid direct (3128) not going through Dansguardian at the moment, squid is forwarding to our LAs ISA server and authenticating against it (not using our AD credentials as the ISA is on a different network, so it's a different user and pass which Squid supplies to the ISA box). In the cache log for squid I am seeing:
1280485942.768 22 172.21.117.38 TCP_MISS/304 360 GET http://node2.bbcimg.co.uk/iplayer/im...cqs_150_84.jpg mydomain\ccronin DEFAULT_PARENT/192.168.248.201 image/jpeg
1280486048.001 179293 172.21.117.38 TCP_MISS/504 2859 GET http://www.google.co.uk/csi? mydomainname\ccronin DIRECT/66.102.9.99 text/html
1280486049.982 0 172.21.117.38 TCP_DENIED/407 2731 GET Google - NONE/- text/html
1280486050.127 0 172.21.117.38 TCP_DENIED/407 3121 GET Google - NONE/- text/html
1280486050.332 202 172.21.117.38 TCP_MISS/200 6492 GET Google mydomainname\ccronin DEFAULT_PARENT/192.168.248.201 text/html
From Google I believe a lot of the tcp_miss can be ignored as they're expected...
I was hoping today to finish off this and move onto the next item on the ever growing list of summer jobs!
Nothing like overlooking the obvious........! I've checked pretty much everything else except that
Now to find the commands to do that, thankfully I have an Ubuntu server book to hand
Try squidclient (apt-get install squidclient) - its pretty handy for checking squid itself directly from your server!
If you don't get very far post your squid conf, maybe theres something astray in there.
Semes to be okay, I've tried downloading via the squidclient and it appears to be (lot of random scrolling text on screen!) I've also gone to BBC - Homepage and have the html for the page on screen so it seems to be an issue between dansguardian and squid?
edit: Actually the problem is there accessing squid direct from a client PC (i.e. bypassing Dansguardian)
I've attached my squid.conf (renamed to .txt), I don't think I've left any passwords in there!
We're running Ubuntu 10.04, Squid 3 and Dansguardian 2.10.1.1.
Cheers!
Last edited by joe90bass; 2nd August 2010 at 10:35 AM.
Reason: incorrect info given re squid issue!
Generated Mon, 02 Aug 2010 12:13:24 GMT by localhost (squid/3.0.STABLE19)
The above error looks like a DNS issue, but I can do nslookups no problem on the server. Very confused!
edit: Further testing seems to indicate issues with parts of web pages. Sky.com seems to load most of the page and then hang, bbc.co.uk takes forever, edugeek takes a long time and is then completely unformatted but www.waterways.org.uk loads quickly and correctly! I'm trying to work out what Squid is objecting to in these pages!
Last edited by joe90bass; 2nd August 2010 at 02:26 PM.
Reason: Further info
I've got in there already, but not the never_direct. I'll give that a try when I'm back in on Monday- Thanks
Ah, yea so it is. I gave up to soon whilst searching for cache_peer in your squid.conf. The never direct should fix your problem. Let us know how you get on.