Re: [squid-users] Migration from Squid 2 to 3: ACLs no longer accepting duplicates

From: Derek Simon <dsimon_at_dmlaw.com>
Date: Wed, 29 Aug 2012 16:31:46 -0400

On 8/28/2012 7:45 PM, Amos Jeffries wrote:
> On 29.08.2012 09:53, Derek Simon wrote:
>> Hi all,
>>
>> I am migrating a Squid 2.7 server to Squid 3.1.
>>
>> In 2.7 I was using the Shallalists without issue, after prefixing
>> each line with a period, as prescribed:
>> http://www.shallalist.de/faq.html#squid
>>
>> I would reference them in squid.conf as such:
>> acl SL_Adv dstdomain "adv/domains.squid"
>>
>> I more or less copied these ACL lines from the 2.7 conf to the 3.1
>> and I get the following errors when reparsing:
>>
>> Processing: acl SL_Adv dstdomain
>> "/etc/squid3/lists/shallalist/adv/domains.squid"
>> WARNING: You should remove '.addesktop.com' from the ACL named 'SL_Adv'
>> WARNING: You should remove '.addesktop.com' from the ACL named 'SL_Adv'
>> ERROR: You should remove '.ads360.com' from the ACL named 'SL_Adv'
>> FATAL: Bungled squid.conf line 732: acl SL_Adv dstdomain
>> "/etc/squid3/lists/shallalist/adv/domains.squid"
>> Squid Cache (Version 3.1.19): Terminated abnormally.
>>
>> What gives? I used to get the warnings in 2.7, and I understand the
>> splay tree performance issue, but why is this now fatal behavior in
>> 3.1?
>
>
> It is a warning when the wildcard '.addesktop.com' is listed before any
> of the sub-domains ('www.addesktop.com'). We can easily drop the
> sub-domain and keep the wildcard.
>
> It is a problem (ERROR and die) when a wildcard is what Squid will be
> dropping. The wildcard is probably the one that needs to be kept, but it
> is too late for Squid to remove entries from the built portion of the
> values tree.
>
> Amos
>

Amos,

Thanks for taking the time to respond.

I'm still curious to know why this worked before and does not now.

What is the recommended workaround?

Best regards,
______________________________
Derek Simon
IT Support
d'Oliveira & Associates, P.C.
401-431-1990
Received on Wed Aug 29 2012 - 20:31:47 MDT

This archive was generated by hypermail 2.2.0 : Thu Aug 30 2012 - 12:00:04 MDT