[squid-users] ICAP question
Alex Rousskov
rousskov at measurement-factory.com
Mon Oct 10 16:04:44 UTC 2016
On 10/10/2016 03:28 AM, Eliezer Croitoru wrote:
> 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
>
> The acl as far as I know doesn’t have any type such as ICAP request mode.
> Am I right?
AFAICT, you are looking at c-icap directives/ACLs, not Squid
directives/ACLs. They may look similar but they are not the same.
Alex.
> 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]"
More information about the squid-users
mailing list