<html><head></head><body><div>On Mon, 2016-10-10 at 12:28 +0300, Eliezer Croitoru wrote:</div><blockquote type="cite"><pre>I am not sure but it seems to me like I might not understood squid ACLS
right but yet to be 100% about it.
acl PERMIT_REQUESTS type REQMOD RESPMOD
icap_access allow localhost PERMIT_REQUESTS
icap_access deny all
</pre></blockquote><blockquote type="cite"><pre>The acl as far as I know doesn’t have any type such as ICAP request mode.
Am I right?

Eliezer

----
Eliezer Croitoru <<a href="http://ngtech.co.il/lmgtfy/">http://ngtech.co.il/lmgtfy/</a>> 
Linux System Administrator
Mobile+WhatsApp: +972-5-28704261
Email: <a href="eliezer@ngtech.co.il
">eliezer@ngtech.co.il
</a></pre></blockquote><div><br></div><div><br></div><div>I am not sure...I am going by the below:</div><div><br></div><div><a href="http://wiki.squid-cache.org/ConfigExamples/ContentAdaptation/C-ICAP">http://wiki.squid-cache.org/ConfigExamples/ContentAdaptation/C-ICAP</a></div><div><br></div><div>James</div><div><br></div><blockquote type="cite"><pre> 

From: squid-users [<a href="mailto:squid-users-bounces@lists.squid-cache.org">mailto:squid-users-bounces@lists.squid-cache.org</a>] On
Behalf Of James Lay
Sent: Sunday, October 9, 2016 8:03 PM
To: squid-users
Subject: [squid-users] ICAP question

Trying to just get some content filtering working and I'm running into the
below:

WARNING: Squid is configured to use ICAP method REQMOD for service
icap://localhost:1344/srv_cfg_filter but OPTIONS response declares the
methods are RESPMOD 

Here's the icap snippet from squid.conf:

icap_enable on
icap_send_client_ip on
icap_persistent_connections on
icap_service srv_cfg_filter_req reqmod_precache
icap://localhost:1344/srv_cfg_filter bypass=on
adaptation_access srv_cfg_filter_req allow all
icap_service srv_cfg_filter_resp respmod_precache
icap://localhost:1344/srv_cfg_filter bypass=off
adaptation_access srv_cfg_filter_resp allow all

interesting c-icap.conf bits:

ModulesDir /opt/icap/lib/c_icap
ServicesDir /opt/icap/lib/c_icap
acl localhost src 127.0.0.1/255.255.255.255
acl PERMIT_REQUESTS type REQMOD RESPMOD
icap_access allow localhost PERMIT_REQUESTS
icap_access deny all
Include srv_content_filtering.conf

lastly, srv_content_filtering.conf:

Service srv_cfg_filter srv_content_filtering.so
srv_content_filtering.Match default body /(test)/ig score=5
LogFormat mySrvContentFiltering "%tl, %>a %im %is %huo  [Scores:
%{srv_content_filtering:scores}Sa] [ActionFilter:
%{srv_content_filtering:action_filter}Sa] [Action:
%{srv_content_filtering:action}Sa]"

not sure why I can't seem to get this to fly...any assistance would be
appreciated...thank you.

James
</pre></blockquote></body></html>