[squid-users] Whitelist domain ignored?

Alex Rousskov rousskov at measurement-factory.com
Thu Oct 6 17:28:28 UTC 2016


On 10/05/2016 11:45 PM, Amos Jeffries wrote:
> On 6/10/2016 11:56 a.m., Jose Torres-Berrocal wrote:
>> acl whitelist2 dstdom_regex -i "whitelist.acl"
>>
>> Where whitelist.acl content:
>> ^familymedicinepr\.com$
>> ^mail\.yahoo\.com$
>> ^neodecksoftware\.com$
>> ^office\.net$
>> \.familymedicinepr\.com$
>> \.mail\.yahoo\.com$
>> \.neodecksoftware\.com$
>> \.office\.net$


> There is a simpler way if you are going to insisit on regex instead of
> dstdomain. Starting the pattern with an optional '.' character:  \.?
> 
> So whitelist.acl content:
> 
> \.?familymedicinepr\.com$
> \.?mail\.yahoo\.com$
> \.?neodecksoftware\.com$
> \.?office\.net$

That simpler way is incorrect AFAICT: The top/correct ACL list does not
match "xoffice.net" but yours does.

Alex.



More information about the squid-users mailing list