Re: Simple ICP queries

From: Duane Wessels <wessels@dont-contact.us>
Date: Thu, 13 Jul 2000 10:41:24 -0600

On Thu, 13 Jul 2000, Tim Cockle wrote:

> Hi,
>
> I am trying to learn about ICP. I want to enable squid to respond to ICP
> queries.
>
> I generate a request using a simple perl program (using Martin Hailton's
> WebCache::ICP module) then read the response.
>
> The question is about the squid side.
>
> I have made the following changes in the squid.conf file and run squid
> -k reconfigure.
>
> icp_port 3130
> icp_query_timeout 2000
> icp_access allow local-clients
> log_icp_queries on
>
> Is that enough?

should be. 'icp_port' and 'icp_access' should be enough.

icp_query_timeout only affects squid as an ICP *client*, not as an
ICP *server*.

> The cache.log states it is read to receive on port 3130.
> I guess I am getting requests through as I get the following in the
> access.log:
> 963484786.281 0 192.168.11.11 UDP_MISS/000 39 ICP_QUERY
> http://www.w3.org/ - NONE/- - [] []
>
> However I am not getting a response.
>
>
> Can any one help?

run tcpdump?

# tcpdump -n port 3130

Duane W.
Received on Thu Jul 13 2000 - 10:44:49 MDT

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