[squid-users] Regex difficulties

Balázs Szabados szabados0701 at gmail.com
Mon May 4 21:25:31 UTC 2015


Hi Amos,

I tried troubleshooting you've mentioned. I just enabled one file
containing regexes.
I've measured it:
root at OpenWrt:~# wc -c /etc/squid/blacklists/regex_allow
1636 /etc/squid/blacklists/regex_allow

Since the whole file is 1636 bytes, I assume ever line of regexes is in
must be smaller than that.
Starting up squid I'm getting these:

2015/05/04 23:17:44| aclParseRegexList: Invalid regular expression
'(.*(acoon\.de|openacoon\.de|omgili\.com|youtube\.com|slug\.ch|\/search\?|mister-wong\.de|mister-wong\.com|abacho\.|seekport\.|flickr\.com|altavista|ask\..com|answers\.com|clusty\.com|exalead\.com|metacrawler|dogpile|lycos|google|yahoo|dmoz|search\.|wikise':
Unmatched ( or \(

I've created a file with just that part in the error message, and it seems
to be 256 bytes (wc -c again).
Isn't that possible, that this is the limit, you've mentioned?

Thanks,
Balazs


2015-05-04 18:10 GMT+02:00 Amos Jeffries <squid3 at treenet.co.nz>:

> On 4/05/2015 10:02 p.m., Amos Jeffries wrote:
> > On 4/05/2015 4:49 a.m., Balázs Szabados wrote:
> >> Hi,
> >>
> >> I'm trying to hook up these regex files for url filtering:
> >> http://www.squidguard.org/Doc/Examples/08.expressionlist
> >> http://www.squidguard.org/Doc/Examples/09.whiteexpression
> >>
>
> Looking at those files, they contain single pattern lines exceeding 2KB
> in length.
>
> Squid will not read more than 2048 bytes on any single file line.
> Including the line terminator. The result will be that the regex parser
> is presented with a truncated line.
>
> Amos
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20150504/d7d7b464/attachment.html>


More information about the squid-users mailing list