[squid-users] Multiple ecap req services

Luis Felipe Dominguez Vega ldominguezvega at gmail.com
Fri Nov 16 13:14:47 UTC 2018


This is all source related to ecap:

ecap_enable on

adaptation_send_client_ip on
adaptation_send_username on
adaptation_masterx_shared_names X-Subscriber-ID

loadable_modules /usr/libexec/squid/ecap_adapter_siteblock.so
loadable_modules /usr/libexec/squid/squid-transfer-audit.so

ecap_service ecapSquidTransferAuditRequest reqmod_precache ecap://
h3r3t1c.cu/ecap/services/transfer_audit_CLIENT_REQUEST_MODE bypass=0
ecap_service ecapBlockSiteRequest reqmod_precache ecap://
h3r3t1c.cu/ecap/services/siteblock?mode=CLIENT_REQUEST_MODE bypass=0

adaptation_service_chain request_chain ecapSquidTransferAuditRequest
ecapBlockSiteRequest

adaptation_access ecapBlockSiteRequest allow all
adaptation_access ecapSquidTransferAuditRequest allow all



El jue., 15 nov. 2018 a las 12:43, Alex Rousskov (<
rousskov at measurement-factory.com>) escribió:

> On 11/15/18 2:51 AM, Amos Jeffries wrote:
> > On 15/11/18 9:00 AM, Luis Felipe Dominguez Vega wrote:
> >> Not working.... i was added
> >>
> >> adaptation_service_chain request_chain ecapBlockSiteRequest
> >> ecapSquidTransferAuditRequest
> >>
> >> and only ecapBlockSiteRequest is used.....
>
>
> > This is sounding more and more like the eCAP module is broken.
>
> Unless Squid configuration does not _use_ the declared request_chain. I
> would ask for *all* adaptation-related lines from squid.conf first.
>
> A good test is to reorder ecapSquidTransferAuditRequest and
> ecapBlockSiteRequest in request_chain and see if ecapBlockSiteRequest is
> still the only adaptation service that is being used. If it is, a
> different set of adaptation_access lines is needed to enable
> request_chain usage.
>
>
> > Can you get a cache.log trace of what it is receiving and sending to
> Squid?
>
> HTH,
>
> Alex.
>
>
> >> El mié., 14 nov. 2018 a las 8:54, Amos Jeffries escribió:
> >>
> >>     On 15/11/18 2:13 AM, Luis Felipe Dominguez Vega wrote:
> >>     > by "use all services" i mean, that all the ecap services set as
> >>     > reqmod_precache.... see this:
> >>     > if i change the order in adaptation_access, then only the first
> >>     defined
> >>     > is used, the another is not used, so i think that in my
> >>     > ecap module i need to put something like.... "continue to next
> >>     > adaptation_service"?????
> >>
> >>
> >>     Did you read the documentation I provided links for earlier?
> >>
> >>     There are multiple ways to group and order services. The services
> >>     themselves can even change the order of what follows. The config
> sample
> >>     you mention does not contain anything telling Squid those details.
> >>
> >>     You need to add one of those directives I provided links to -
> whichever
> >>     one meets your required ordering.
> >>
> >>     Amos
> >>     _______________________________________________
> >>     squid-users mailing list
> >>     squid-users at lists.squid-cache.org
> >>     <mailto:squid-users at lists.squid-cache.org>
> >>     http://lists.squid-cache.org/listinfo/squid-users
> >>
> > _______________________________________________
> > squid-users mailing list
> > squid-users at lists.squid-cache.org
> > http://lists.squid-cache.org/listinfo/squid-users
> >
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20181116/7e654db5/attachment-0001.html>


More information about the squid-users mailing list