RE: [squid-users] TCP_HIT and TCP_MISS

From: Guillaume Chartrand <guillaume.chartrand@dont-contact.us>
Date: Thu, 27 Mar 2008 11:59:28 -0400

>Guillaume Chartrand wrote:
>>> Have you solved the forwarding loop?
>>>
>> Nope, If I understand the loop is when my squid box try himself to go
to
>> the web the routeur redirected to himself. Is that means?
>>

>That's how I interpret it.

>> If so, I will try to modify my ACL on my router to not redirect
packet
>> when it's from my squid box
>>

>Which might fix the problem... It's a good idea in any case.

I modified my ACL in my router to not redirect my squid packet but it's
keep saying Forwardind loop detected.

>>
>>> What is the output of "/usr/local/squid/bin/squidclient -s
>>> http://www.nu.nl/img/balkje.gif && /usr/local/squid/bin/squidclient
>>> http://www.nu.nl/img/balkje.gif" (run on the squid box)?
>>>
>>> Chris
>>>
>>
>> Nothing happens on the command line but in my access.log here the
result
>>
>> 1206562805.600 570 127.0.0.1 TCP_DENIED/403 1514 GET
>> http://www.nu.nl/img/balkje.gif - NONE/- text/html
>> 1206562805.611 0 127.0.0.1 TCP_DENIED/403 1514 GET
>> http://www.nu.nl/img/balkje.gif - NONE/- text/html
>>

>Fair enough. You aren't allowing localhost to surf. For this test to
>work, either copy squidclient to another machine on your network (and
>use the -h with squidclient to specify your squid host) or allow
>localhost http_access ("http_access allow localhost" just above
>"http_access deny all").

>Chris

I modified squid to allow localhost to surf and here is the result in
command line

HTTP/1.0 200 OK
Content-Length: 53
Server: Juniper Networks NitroCache/v1.0
Content-Type: image/gif
Last-Modified: Thu, 27 Mar 2008 15:52:16 GMT
Expires: Thu, 27 Mar 2008 15:57:16 GMT
P3P: CP="NON DSP COR NID CURa ADMa DEVa PSAa PSDa IVAa IVDa OUR IND UNI
COM NAV INT STA", policyref="/w3c/p3p.xml"
Cache-Control: max-age=300
X-Cache: HIT from squid.collanaud.qc.ca
Via: 1.1 ilsia006ixs (Juniper Networks Application Acceleration Platform
- DX 5.2.4 0), 1.0 squid.collanaud.qc.ca:3128 (squid/2.6.STABLE12)
Proxy-Connection: close

And here is my access.log
1206626419.158 4887 127.0.0.1 TCP_MISS/200 597 GET
http://www.nu.nl/img/balkje.gif - DIRECT/62.69.179.230 image/gif
1206626419.266 102 127.0.0.1 TCP_REFRESH_HIT/200 596 GET
http://www.nu.nl/img/balkje.gif - DIRECT/62.69.179.230 image/gif
1206626658.440 540 127.0.0.1 TCP_REFRESH_MISS/200 597 GET
http://www.nu.nl/img/balkje.gif - DIRECT/62.69.184.129 image/gif
1206626658.587 135 127.0.0.1 TCP_REFRESH_HIT/200 596 GET
http://www.nu.nl/img/balkje.gif - DIRECT/62.69.184.129 image/gif
1206632986.525 832 127.0.0.1 TCP_REFRESH_MISS/200 597 GET
http://www.nu.nl/img/balkje.gif - DIRECT/62.69.179.231 image/gif
1206632986.645 106 127.0.0.1 TCP_REFRESH_HIT/200 596 GET
http://www.nu.nl/img/balkje.gif - DIRECT/62.69.179.231 image/gif

Guillaume
Received on Thu Mar 27 2008 - 10:02:34 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Apr 01 2008 - 13:00:05 MDT