RE: [squid-users] parent proxy not working correctly?

From: Chris Robertson <[email protected]>
Date: Fri, 2 Dec 2005 09:37:01 -0900

> -----Original Message-----
> From: Liong Kok Foo [mailto:kfliong@wofs.com]
> Sent: Friday, November 25, 2005 12:33 AM
> To: squid-users@squid-cache.org
> Subject: RE: [squid-users] parent proxy not working correctly?
>
> Sorry for replying directly to your email address.
>

Not a problem.

> At 02:34 AM 11/24/2005, you wrote:
>>> -----Original Message-----
>>> From: kfliong [mailto:kfliong@wofs.com]
>>> Sent: Tuesday, November 22, 2005 9:24 PM
>>> To: squid-users@squid-cache.org
>>> Subject: [squid-users] parent proxy not working correctly?
>>>
>>>
>>> I have just setup some parent proxy for my squid proxyserver but
>>> somehow it doesn't work really well.
>>>
>>> Here is what I added.
>>>
>>> acl LAN_sites dstdomain netserver.wofs.local
>>> acl localnetwork url_regex -i 192.168
>>> always_direct allow LAN_sites
>>> always_direct allow localnetwork
>>
>> never_direct allow all # Force all other traffic to use parent
>> proxies.
>>
>>>
>>> cache_peer 111.22.33.44 parent 554 554 round-robin
>>> cache_peer 111.22.33.45 parent 554 554 round-robin
>>> cache_peer 111.22.33.46 parent 8080 8080 round-robin
>>> cache_peer 111.22.33.49 parent 553 553 round-robin
>>>
>>> When I apply the settings, it works for a while. If I go to
>>> whatismyip.com, I will get those parent proxy ip addresses. But
>>> after a while, like 1 minutes, whatismyip.com will give me my
>>> real IP address. I will have to re-start squid and whatismyip.com
>>> will again give me parent proxy's IP for a few refresh before
>>> falling back to my real IP address.
>>>
>>> Is that how it works or I am doing something wrong?
>>>
>>> Please advice. Thanks in advance.
>>>
>>>
>>>
>>
>> Chris
>
> Anyway, when I add "never_direct allow all", my proxy will cease to
> work. Cannot browse at all.
>
>

I really should have noticed that you were using the same port for proxy and ICP. That's not going to work. Try adding "no-query" to your cache_peer lines (e.g. cache_peer 111.22.33.44 parent 554 554 round-robin no-query).

Chris
Received on Fri Dec 02 2005 - 11:37:05 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 31 2005 - 12:00:02 MST