Re: [squid-users] Clearing ACLs on reload?

From: Amos Jeffries <squid3@dont-contact.us>
Date: Tue, 25 Mar 2008 00:21:00 +1300

Ilkka Tuohela wrote:
> Hi,
>
> I was wondering how I could clear entries from certain ACL during reload
> of squid configuration?
>
> I was looking if I could for example add a line like this (not valid, of
> course):
>
> acl local_domains reset
> acl local_domains "/etc/squid/local_domains.acl"
>
> The issue here is that I need to control access to parent proxy by ACLs,
> and sometimes entries need to be removed from a ACL. Because the ACL
> rules always add to the existing ACL, removing a line from external file
> and reloading squid does not actually remove it from running configuration.
>
> For me it would be fine, if there were a way to do this, with a reset
> rule before the ACL entries, right now I can add new ACL entries by
> reloading, but to remove I need to restart squid completely.
>
> I'm using ubuntu package, 2.6.18-1ubuntu2. I can upgrade to 3.x release
> if this would solve my problem.
>
> *hile*

I thought squid did clear the ACLs on reload. And a quick check of the
code confirms that it should be.

What is giving you the idea that it does not?

Amos

-- 
Please use Squid 2.6STABLE17+ or 3.0STABLE1+
There are serious security advisories out on all earlier releases.
Received on Mon Mar 24 2008 - 05:21:03 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Apr 01 2008 - 13:00:05 MDT