Re: [squid-users] issue getting replay_body_max_size to work with an external acl

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 30 May 2012 19:07:00 +1200

On 30/05/2012 6:05 p.m., Cameron Charles wrote:
> Hi,
>
> I am trying to use an external acl to "toggle" a reply_body_max_size,
> so im my conf i have the following
>
> reply_body_max_size 1 MB extaclname
>
> and extaclname is setup to run a check on some data and return its
> findings with an OK or ERR, the ext acl works correctly as its used
> elsewhere in squids workings but i cannot get it restrict the reply
> size when it should be, in fact it appears never to "run" the acl as
> some debug message in the external check are never fired
>
> I have found this very old posting
> http://www.mail-archive.com/squid-users@squid-cache.org/msg59937.html
> which mentions " you may be able to get this to work then by adding
> the ACL test to an http_reply_access line as well." but im not sure
> how to implement this in anyway that would affect the line i have
> above

http_reply_access is tested on first receiving the reply. You run the
ACL test there and its result gets cached for use by the
reply_body_max_size test later.

   http_reply_access allow extaclname !all

note the "!all" that is important to make it have no effect on actual
reply access. Place this at the top of the http_reply_access list set if
you have any others doing allow/deny.

Amos
Received on Wed May 30 2012 - 07:07:11 MDT

This archive was generated by hypermail 2.2.0 : Wed May 30 2012 - 12:00:06 MDT