[squid-users] WARNING: there are more than 100 regular expressions

Eliezer Croitoru eliezer at ngtech.co.il
Mon Dec 1 20:20:56 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey,

As the warning suggests you better use less REGEX and specifically
dstdom_regex is not recommends.
If you have more then 100 of them you should just verify that these
are really a good solution.
You can use an external_acl helper with long ttl cache and it would
let you to update the regex or checks outside of squid.

If you have these regex and you know you will not update them fast use
some external_acl helper based only on domain name.

If you can share these urls maybe there is a chance that I or others
can suggest to you the right path.

All The Bests,
Eliezer

On 11/27/2014 10:57 AM, navari.lorenzo at gmail.com wrote:
> Good day, i have these Warnings
> 
> squid -k parse
> 
> .......... 2014/11/27 09:36:22| Processing: acl direct_urls
> dstdom_regex "/etc/squid/direct_urls.txt" 2014/11/27 09:36:22|
> /etc/squid/squid.conf line 86: acl direct_urls dstdom_regex
> "/etc/squid/direct_urls.txt" 2014/11/27 09:36:22| WARNING: there
> are more than 100 regular expressions. Consider using less REs or
> use rules without expressions like 'dstdomain'. 
> .................... 2014/11/27 09:36:22| Processing: acl
> allowed_sitesmime dstdom_regex "/etc/squid/allowed_sitesmime.txt" 
> 2014/11/27 09:36:22| /etc/squid/squid.conf line 94: acl
> allowed_sitesmime dstdom_regex 	"/etc/squid/allowed_sitesmime.txt" 
> 2014/11/27 09:36:22| WARNING: there are more than 100 regular
> expressions. Consider using less REs or use rules without
> expressions like 'dstdomain'.
> 
> 
> What can i do ?
> 
> Thank to everybody.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUfM2oAAoJENxnfXtQ8ZQUNWQIAJrdvqA1xauwZg4PLsHmVVp6
MXVqsO63YTkaM84TlOcdLYmsX0CUky2j7APGUJT6xt4P3fgDLmJOaXHXqapWcm/9
rAgAj7qewzlx6HRH34sbKUj9ho8xsVEnuSu6tJQ7LV0pw/VVe1BuD3u5xup+iTxF
AcPx86Y4mVShcHq6pFSp40QVJ+olBCq4vhgRxjkyvLWVNOmx1EiiWRqRwsMZDb/Q
AvWxu2h0J4ffm3m8AneJlkqcJ6qfpn5ORVDr9qvMP1mKmAS0w/1Rl+S/AAWqeSbO
qLFqb8HO6tBTRFgPJm2VmzNGLTx04rGly6VL5lkdzbf18FaCy1Vgsj8XU/KRbUA=
=b070
-----END PGP SIGNATURE-----


More information about the squid-users mailing list