> Mr. Matthews, you write:
>
> Domain matching includes subdomains. Thus
> if you have a domainlist ...

Those are quotes directly from the documentation on the squidGuard
web site: http://www.squidguard.org/doc/

> So this works only in the domains blacklist?
> If I insert bad.com into the URLs blacklist,
> only bad.com is blacklisted, but not
> whatever.bad.com . So if I want to blacklist
> all virtual (second level) domains, like
> whatever. bad.com, then I have to insert bad.com
> into the domains blacklist rather than the
> urls blacklist?

For the purposes of working with squidGuard, the definition of a
domain and a url are found here: http://www.squidguard.org/config/
(In the contents, select <The Database><Domainlists>.

These are domains (and should be placed in a domains file):
amex.com
asx.com.au
bourse-de-paris.fr
exchange.de
londonstockex.co.uk
nasdaq.com
nyse.com
ose.no
tse.or.jp
xsse.se

and these are urls (and should be placed in a urls file):
foo.com/~badguy
bar.com/whatever/suspect
amex.com/personal
geo.yahoo.com/serv
zmedia.com/zm
theregister.co.uk/media
(If it has a slash in it, it's a url.)

If these two lists were truely your domains and urls files, the
'amex.com/personal' entry in the urls file would be redundant, since
the entire domain is blocked by the 'amex.com' entry in domains.

The following was not directed to me, but I thought I'd go ahead and
answer it anyway.

> > now I have an "sgrebuild" script that does
> > a squidguard -C all followed by a chown ...
>
> What is this sgrebuild? What I actually need,
> is something equivalent to a windows bat file,
> where I can put :

He was describing a script that he has written to perform all of the
listed functions. The script is "something equivalent to a windows
bat file". What you actually need is to spend a little time learning
about the Linux environment. Since you are familiar with batch
files, I'd suggest you start by doing a little reading and
experimenting with BASH. You'll find plenty of documentation in any
format you could possibly want here:
http://www.gnu.org/manual/bash/index.html.

Rick



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Richard
Sent: Tuesday, April 23, 2002 8:34 PM
To: [EMAIL PROTECTED]
Subject: Squidguard: subdomains blocking and an equivalent to a
windows
*.bat file to automatise squid and squidguard update after inserting
new
entry into the url list


Hi,

first thanx to Rick Matthews and Nick Barron for your replies to my
questions. Unfortunately my email account got deleted and I couldn't
get
some of the emails, but I found them in the mailing list archive.
Still,
some things are unclear. Mr. Matthews, you write:

Domain matching includes subdomains. Thus if you have a domainlist
containing bad.com all these URLs will match that destination group
since they are equal to or subdomains of bad.com:
http://bad.com/
http://bad.com/whatever
ftp://bad.com/
wais://bad.com
http://www2.bad.com/
http://whatever.bad.com/
http://www56.whatever.bad.com/
but not:
http://www.verybad.com/


So this works only in the domains blacklist? If I insert bad.com
into
the URLs blacklist, only bad.com is blacklisted, but not
whatever.bad.com . So if I want to blacklist all virtual (second
level)
domains, like whatever. bad.com, then I have to insert bad.com into
the
domains blacklist rather than the urls blacklist?

Mr. Barron, you write:

now I have an "sgrebuild"
script that does a squidguard -C all followed by a chown -R
squid.squid
/data/squidguard (adjust for your local install). That way if things
are
behaving strangely you can run sgrebuild to make sure it's not a
silly
mistake (my standard one is creating a new group as root and then
running
squidguard to reconfigure).

What is this sgrebuild? What I actually need, is something
equivalent to
a windows bat file, where I can put :

Squidguard -C all
Squid -k reconfigure , and then it should be executed by clicking on
this file (or on a symbolic link to this file) from the kde
environment,
otherwise I have to type in these lines in a console, in order to
update
squid and squidguard after inserting a new url/domain into the
blacklists.

Regards,
Gert

Reply via email to