Re: [squid-users] New to List needing squid.conf help!

From: D & E Radel <radel@dont-contact.us>
Date: Tue, 3 Jan 2006 12:58:40 +1300

Egad! What happened to your carriage returns? :-)

You need the following line in your squid.conf
    acl all src 0.0.0.0/0.0.0.0

That should've been part of the default squid.conf.

You don't need to recompile squid for each change. Just restart squid
using:
    /etc/init.d/squid restart

Regards,
D.Radel.

----- Original Message -----
From: Mark T. C.
To: D & E Radel
Sent: Tuesday, January 03, 2006 8:01 AM
Subject: Re: [squid-users] New to List needing squid.conf help!

When I try and compile (squid -k reconfigure) after adding these lines
to squid.conf, I get errors. Possibly because of the old version of
squid I use? acl blocked_content url_regex -i
"/home/mchristy/blacklists/blocked_sites.txt" http_access deny
blocked_content download all http_access deny blocked_content all
http_reply_access deny blocked_content all squid - k reconfigure
2006/01/02 10:55:40| squid.conf line 838: http_access deny
blocked_content download all 2006/01/02 10:55:40| aclParseAccessLine:
ACL name 'download' not found. 2006/01/02 10:55:40| squid.conf line 838:
http_access deny blocked_content download all 2006/01/02 10:55:40|
aclParseAccessLine: ACL name 'all' not found. 2006/01/02 10:55:40|
squid.conf line 839: http_access deny blocked_content all 2006/01/02
10:55:40| aclParseAccessLine: ACL name 'all' not found. 2006/01/02
10:55:40| parseConfigFile: line 840 unrecognized: ' http_reply_access
deny blocked_content all' If I reduce the configuration to just the
following (aka - what worked before with my other configuration except
using the "file" format) acl blocked_content url_regex -i
"/home/mchristy/blacklists/blocked_sites.txt" http_access deny
blocked_content The command squid -k reconfigure produces no output, yet
none of the keywords in the file blocks anything, all sites are
allowed... the file looks like this... sex .sex.com *sex*
http://www.sex.com http://www.sex.com/* .*sex.* So I am back to my first
problem... or Dan and major kernel and squid upgrades for my
future. -----Original Message----- From: "D & E Radel" To: "Mark T. C."
Cc: Date: Mon, 2 Jan 2006 18:40:57 +1300 Subject: Re: [squid-users] New
to List needing squid.conf help! > Example ACL: >
============================= > acl blocked_content url_regex -i
"/home/me/blocked_sites.txt" > http_access deny blocked_content download
all > http_access deny blocked_content all > http_reply_access deny
blocked_content all > ============================= > > Contents of
plain text file "blocked_sites.txt" > ============================= >
.adultfriendfinder.com > gamblingboard.com > .gain.com > porn > sex >
teens > xxx > babes > .wikipedia.org > ============================= > >
> Works at treat. > D.Radel. > > > ----- Original Message ----- > From:
"Scott Phalen" > To: "Mark T. C." > Cc: > Sent: Monday, January 02, 2006
6:15 PM > Subject: Re: [squid-users] New to List needing squid.conf
help! > > > > Mark T. C. wrote: > > > >>Hi, > >> > >>I've been using
Linux (RH 5.2) for years and it does what I need it > to > >>do just
fine. I've had it running squid and simple X-window telnet, > >>perl,
expect, apache, etc... just for fooling around and learning. > Now >
>>that I have teenage boys, and the internet - well, Squid and >
webalizer > >>are really coming in handy. I am having some problems
getting simple > >>ACLs to work. I can make them work in this fashion...
> >> > >>acl ACLX url_regex -i sex > >>. > >>. > >>. > >>http_access
deny ACLX > >>. > >>. > >>. > >> > >>But then I have to create billions
of lists like the pair above > >>ad-Infinitum. There must be a better
way... so, I see in the help in > >>squid.conf the following... > >> >
>>acl aclname acltype "file" ... > >> > >>where acltype can be
url_pattern (or url_regex ???) and the file says > >>it must contain one
entry per line, which I can only assume must be a > >>regular expresion
pattern such as .*sex.*??? > >> > >>But... when I use... > >> > >>acl
BANLIST url_regex (or url_pattern) ban-list > >>http_access deny BANLIST
> >>... and place the file ban-list with a bazillion lines of nasty word
> >>patterns in it, nothing gets banned, not even http://www.sex.com...
> >>sigh. > >> > >>Is there anywhere where anyone has actually written a
step-wise > manual > >>that really, in english, with procedure -
explains how to configure > >>these things. I do not mean a syntax
manual... I mean a method and > >>purpose example and method that does a
job, specifically and > >>purposefully. I write this sort of
documentation all day long at my > >>work. ANYONE - with our with out in
depth experience can pick up one > >>of my docs and perform the task -
in this case how to add a phrase or > >>site to an ACL in squid.conf to
ban a specific http access... see > what > >>I mean. > >> > >>Thanks in
advance (how's that for an introduction)... I have many > more > >>to
come... > >> > >>Mark > >> > >> > >> > >> > > Have you looked at
http://dansguardian.org? Possibly SquidGuard? > > Would make what you
are doing MUCH easier. > > > > Scott >
Received on Mon Jan 02 2006 - 16:58:43 MST

This archive was generated by hypermail pre-2.1.9 : Wed Feb 01 2006 - 12:00:01 MST