On 11.10.2012 06:42, E.S. Rosenberg wrote:
> I forgot to ask:
> Is it possible to have an ext_acl return multiple tags (to 'stack'
> tags)?
>
Not in the current Squid. They only support a single tag with
write-once semantics.
Here is a patch if you like that makes squid-3.2+ change this behaviour
and replace any existing tag with a new one. When two helpers both send
tags the tag from last one to be tested will be set on the helper.
http://master.squid-cache.org/~amosjeffries/patches/s32_extACL_tag_replace.patch
WARNING: This may cause problems if your config depends on the
write-once behaviour to cover any configured ACLs double-tagging.
NOTE: to stack tags properly you may have to adjust helpers to take
%EXT_TAG in their input and append/alter details before sending
tag=$result back to Squid for altering the request existing tag. And/or
add a tag_regex ACL type to apply regex pattern to the tag setting.
Would you be interested in sponsoring me a few hours work for $200 USD
to implement a tag set properly?
http://treenet.co.nz/projects/squid/
Amos
Received on Thu Oct 11 2012 - 00:51:49 MDT
This archive was generated by hypermail 2.2.0 : Thu Oct 11 2012 - 12:00:02 MDT