Re: [squid-users] Can squidclient ping or query Squid for ICAP configuration?RESPMOD REQMOQ or service vector?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 20 Feb 2009 17:42:12 +1300

david_at_davidwbrown.name wrote:
> Hello Amos, this is a resend. I can connect with telnet mail.treenetnz.co.nz 25 but sending the mail using the SMTPd bounces or fails.

Don't worry, sending to squid-users will get to me.

> Hello Amos and all readers, thanks for the speedy and informative reply. 2.7.STABLE6 will not configure with --enable-icap-client and 3.0.STABLE13 makes and installs OK but won't accept anything on the gateway. The squid.conf is default except for debug_options set to ALL,3. The error condition follows with a snippet from: cache.log. Please advise, David.
>

2.7 has no ICAP support. It was new in 3.0.

The error page you got was due to receiving non-proxied request (ie
intercepted, or reverse proxy request).

Since you say squid.conf is the default, then that is likely your
problem. Squid needs to be configured specially to handle unusual requests.

  see whichever of these apply to your intended situation:
   http://wiki.squid-cache.org/ConfigExamples/Reverse/BasicAccelerator
   http://wiki.squid-cache.org/ConfigExamples/Intercept

> *************************************************************
>
> ERROR
> The requested URL could not be retrieved
>
> The following error was encountered while trying to retrieve the URL: /
>
> Invalid URL
>
> Some aspect of the requested URL is incorrect.
>
> Some possible problems are:
<snip>
> Missing or incorrect access protocol (should be "http://" or similar)
> *
>
> Missing hostname

<snip>

>
> Amos Jeffries wrote ..
>> david_at_davidwbrown.name wrote:
>>> Hello squid users, I have read the ICAP RFC but I cannot see a way to devise
>> a ICAP query to the Squid server to extract ICAP information. It appears the squid
>> 3.0.STABLE13 does not communicate with my ICAP server what-so-ever. I have run
>> ./squid -N -X and the output shows all ICAP tags recognized including service vector
>> points: echo, url_check, etc. This is a harsh way to test as I have to shutdown
>> squid on my gateway just to do a test. Is there a real-time method to test Squid
>> for ICAP communications using the squidclient? I can telnet to the ICAP server
>> and get a response but I can't do the same connecting to squid. Please advise,
>> David.
>>
>> Ouch. Heres a few debugging tips I use to debug squid on a production
>> gateway:
>>
>> - build a _second_ instance of squid in a semi-jail, listening on
>> different ports, etc than the live squid. This allows you to run tests
>> on the secondary instance under the same conditions as live, but without
>> affecting the main flow.
>>
>> - use reload/reconfigure to action new configurations as much as
>> possible. Restart is overkill on many changes.
>>

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
   Current Beta Squid 3.1.0.5
Received on Fri Feb 20 2009 - 04:41:58 MST

This archive was generated by hypermail 2.2.0 : Fri Feb 20 2009 - 12:00:01 MST