[squid-users] Regex difficulties

Amos Jeffries squid3 at treenet.co.nz
Tue May 5 01:05:07 UTC 2015


On 5/05/2015 9:25 a.m., Balázs Szabados wrote:
> 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?

It maybe... in very old Squid. The line limit was raised to KBs some
years ago.

Amos



More information about the squid-users mailing list