Re: Squid Bug?

From: Brian <[email protected]>
Date: Fri, 24 Mar 2000 10:50:47 -0600 (CST)

On Fri, 24 Mar 2000, Duane Wessels wrote:

>
>
> On Fri, 24 Mar 2000, Brian wrote:
>
> >
> > I am seeing this with squid-2.2.STABLE4.
> >
> > Not all web sites on the Internet have a unique IP address. Some share an
> > IP address. Since modern browsers send the requested host/domain to the
> > server in the header, the web server can make a decision about which
> > website to pull up. An example of this is:
> >
> > Name: teachyourselfmusic.com
> > Addresses: 207.155.252.12, 207.155.248.7, 207.155.252.7, 207.155.252.72
> >
> > Name: deductbox.com
> > Addresses: 207.155.248.7, 207.155.248.14, 207.155.252.72, 207.155.252.12
> >
> > Name: slingo.com
> > Addresses: 207.155.248.14, 207.155.252.72, 207.155.248.7, 207.155.252.12
> >
> > etc, etc.
> >
> > These are totally different web sites. Yet for some reason, once our
> > squid caches them, it mixes them up. Someone will request say
> > deductbox.com, and actually pull up slingo.com, etc.
> >
> > I am not sure what the problem could be, but its something in squid. This
> > only happens with websites that use the same IP addresses. I am assuming
> > it may be something in my configuration file.
>
> doubtful.
>
> > Note: This is using multiple squids and a layer4 switch to balance
> > accross them. I am wondering if the layer4 switch in any way could be
> > guilty?
>
> more likely, but still....
>
> What do your URLs look like in access.log and store.log? They have
> hostnames or URLs?

URL's. I keep thinking that if squid would try to fetch the urls by
"name" instead of ipaddr, then that would maybe fix it? I have been
running squid for years, and never had this problem. We lost our
squid.conf file while doing a rebuild of the machine, so I had to rebuild
it from memory, and ever since then I am seeing this. At the same time I
brought the "new" squid online, we brought another online as well, so
that's changed too, instead of one squid, we use two.:

953916493.873 274 208.206.76.49 TCP_MISS/200 773 GET
http://207.155.248.72/ - DIRECT/207.155.248.72 text/html
953916494.169 150 208.206.76.49 TCP_MISS/200 1881 GET
http://207.155.248.72/nav-bot-welcome.html - DIRECT/207.155.248.72
text/html
953916494.282 260 208.206.76.49 TCP_MISS/200 752 GET
http://207.155.248.72/right-welcome.html - DIRECT/207.155.248.72 text/html
953916494.309 132 208.206.76.49 TCP_MISS/200 388 GET
http://207.155.248.72/images/nav-bot-bg.gif - DIRECT/207.155.248.72
image/gif
953916494.480 170 208.206.76.49 TCP_MISS/200 1579 GET
http://207.155.248.72/header-welcome.html - DIRECT/207.155.248.72
text/html
953916494.526 329 208.206.76.49 TCP_MISS/200 2216 GET
http://205.188.164.30/static/aan/images/88x31navyblue.gif -
DIRECT/205.188.164.30 image/gif
953916494.557 216 208.206.76.49 TCP_MISS/200 6550 GET
http://207.155.248.72/main-welcome.html - DIRECT/207.155.248.72 text/html
953916494.574 377 208.206.76.49 TCP_MISS/200 304 GET
http://216.33.46.173/bfast/serve? - DIRECT/216.33.46.173 image/gif
953916494.757 265 208.206.76.49 TCP_MISS/200 5816 GET
http://207.155.248.72/images/headgrad10.jpg - DIRECT/207.155.248.72
image/jpeg
953916494.916 407 208.206.76.49 TCP_MISS/200 325 GET
http://207.155.248.72/images/transpgif.gif - DIRECT/207.155.248.72
image/gif
953916494.977 212 208.206.76.49 TCP_MISS/200 2954 GET
http://207.155.248.72/images/logo-sling.gif - DIRECT/207.155.248.72
image/gif
953916495.112 916 208.206.76.49 TCP_MISS/200 11903 GET
http://207.155.248.72/images/buttons-welcome.gif - DIRECT/207.155.248.72
image/gif
953916495.159 666 208.206.76.49 TCP_MISS/200 1671 GET
http://207.155.248.72/images/devil.gif - DIRECT/207.155.248.72 image/gif
953916495.182 678 208.206.76.49 TCP_MISS/200 3030 GET
http://207.155.248.72/images/chereb.gif - DIRECT/207.155.248.72 image/gif
953916495.219 262 208.206.76.49 TCP_MISS/200 1453 GET
http://207.155.248.72/images/jester.gif - DIRECT/207.155.248.72 image/gif
953916495.277 289 208.206.76.49 TCP_MISS/200 345 GET
http://207.155.248.72/images/dividertile.gif - DIRECT/207.155.248.72
image/gif
953916495.329 767 208.206.76.49 TCP_MISS/200 33798 GET
http://207.155.248.72/images/BallySmr.jpg - DIRECT/207.155.248.72
image/jpeg
953916495.367 198 208.206.76.49 TCP_MISS/200 1681 GET
http://207.155.248.72/images/welcome.gif - DIRECT/207.155.248.72 image/gif
953916495.382 194 208.206.76.49 TCP_MISS/200 2828 GET
http://207.155.248.72/images/oani2.gif - DIRECT/207.155.248.72 image/gif
953916495.985 1434 208.206.76.49 TCP_MISS/200 38331 GET
http://207.155.248.72/images/slot.jpg - DIRECT/207.155.248.72 image/jpeg

>
> squid-2.3 has a patch that might help.
>
> http://www.squid-cache.org/Versions/v2/2.3/bugs/#squid-2.3.devel3-host-header-mismatch
>
> its simple, so it should apply to 2.2.STABLE4.
>

-----------------------------------------------------
Brian Feeny (BF304) signal@shreve.net
318-222-2638 x 109 http://www.shreve.net/~signal
Network Administrator ShreveNet Inc. (ASN 11881)
Received on Fri Mar 24 2000 - 09:54:26 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:52:23 MST