Re: [squid-users] reply_body_max_size && external_acl

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 08 Jun 2012 19:41:57 +1200

On 8/06/2012 4:50 p.m., Robert Gowty wrote:
> I am having problems getting an external acl to work with reply_body_max_size
> The steps I have taken are as follows:
> 1. Define the external_acl_type response_size_check_ext_acl_type
>
> # response_size_check_{pk}_acl pk
> external_acl_type response_size_check_ext_acl_type ttl=100 negative_ttl=100 cache=0 children=2 concurrency=20 %EXT_TAG %EXT_LOG /usr/share/bin/ext_acl_payload_check -c 20 --key=response_size_restriction
>
> 2. Create a number of acl's using this type in squid.conf, for example, then applying it to reply_body_max_size
>
> acl response_size_13_acl external response_size_check_ext_acl_type 13
> http_reply_access allow response_size_13_acl !all
> reply_body_max_size 13 MB response_size_13_acl !all

The purpose of the "!all" is to prevent the response_size_13_acl match
doing an allow. "!all" will always be a false/no-match.

So... using it on reply_body_max_size has the same effect of making sure
that line is never used.

What you need is this:
     http_reply_access allow response_size_13_acl !all
     reply_body_max_size 13 MB response_size_13_acl

Amos
Received on Fri Jun 08 2012 - 07:42:12 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 12 2012 - 12:00:03 MDT