Hi,
i have the following Problem. I hope you can help me:
My config file looks like this and is saved in /usr/local/squidGuard:
| dbhome /usr/local/squidGuard/db
| logdir /usr/local/squidGuard/log
|
| dest porn {
| domainlist porn/domains
| urllist porn/urls
| expressionlist porn/expressions
| redirect http://www.gymroe.de
| }
|
|
| acl {
| default {
| pass !porn any
| redirect http://www.gymroe.de
| }
| }
you see, that i want to simply block all porn websites.
If i try to give him a URL he should block he just gives me back
a blank line instead of redirecitng to www.gymroe.de. The file
and the command i use are:
File "refuse":
| http://www.sex.de 194.25.94.136/- - GET
Command:
| ./squidGuard < refuse > refuse.out
then i get the following output:
|
This should refeer me to www.gymroe.de, but it doesn't.
The following says the log file:
| 2003-03-27 15:49:11 [1665] init domainlist /usr/local/squidGuard/db/porn/domains
| 2003-03-27 15:49:11 [1665] loading dbfile /usr/local/squidGuard/db/porn/domains.db
| 2003-03-27 15:49:11 [1665] domainlist empty, removed from memory
| 2003-03-27 15:49:11 [1665] init urllist /usr/local/squidGuard/db/porn/urls
| 2003-03-27 15:49:11 [1665] loading dbfile /usr/local/squidGuard/db/porn/urls.db
| 2003-03-27 15:49:11 [1665] urllist empty, removed from memory
| 2003-03-27 15:49:11 [1665] init expressionlist
/usr/local/squidGuard/db/porn/expressions
| 2003-03-27 15:49:11 [1665] squidGuard 1.2.0 started (1048776551.461)
| 2003-03-27 15:49:11 [1665] squidGuard ready for requests (1048776551.463)
| 2003-03-27 15:49:11 [1665] squidGuard stopped (1048776551.464)
he says that the db-files are empty. If I remove the .db files I had created with
"$ squidGuard -C all" squidGuard should use the plain text files ("domains"...),
but i even get a blank line as output again when i try to do the command i did in
order to block sex.de. The logfile now says the following:
| 2003-03-27 16:03:01 [1756] init domainlist /usr/local/squidGuard/db/porn/domains
| 2003-03-27 16:03:01 [1756] init urllist /usr/local/squidGuard/db/porn/urls
| 2003-03-27 16:03:01 [1756] init expressionlist
/usr/local/squidGuard/db/porn/expressions
| 2003-03-27 16:03:01 [1756] squidGuard 1.2.0 started (1048777381.440)
| 2003-03-27 16:03:01 [1756] squidGuard ready for requests (1048777381.666)
| 2003-03-27 16:03:01 [1756] squidGuard stopped (1048777381.667)
it seems that it works well, but it doesn't. squidGuard doesn't refer me to
www.gymroe.de as i expect, so it does NOT block. If i try the 2 experiments with
an url to pass, this happens:
With the .db files in the db directory:
The file to pass is "pass":
| http://www.gymroe.de 62.128.1.80/- - GET
The result with the command ./squidGuard < pass > pass.out
is a blank line again. And the logfile says again:
| 2003-03-27 16:09:45 [1788] init domainlist /usr/local/squidGuard/db/porn/domains
| 2003-03-27 16:09:45 [1788] loading dbfile /usr/local/squidGuard/db/porn/domains.db
| 2003-03-27 16:09:45 [1788] domainlist empty, removed from memory
| 2003-03-27 16:09:45 [1788] init urllist /usr/local/squidGuard/db/porn/urls
| 2003-03-27 16:09:45 [1788] loading dbfile /usr/local/squidGuard/db/porn/urls.db
| 2003-03-27 16:09:45 [1788] urllist empty, removed from memory
| 2003-03-27 16:09:45 [1788] init expressionlist
/usr/local/squidGuard/db/porn/expressions
| 2003-03-27 16:09:45 [1788] squidGuard 1.2.0 started (1048777785.173)
| 2003-03-27 16:09:45 [1788] squidGuard ready for requests (1048777785.176)
| 2003-03-27 16:09:45 [1788] squidGuard stopped (1048777785.177)
if i remove the .db files in order to force him to use the plain text files, i
get a blank linke, too. and the logfile says:
| 2003-03-27 16:15:23 [1856] init domainlist /usr/local/squidGuard/db/porn/domains
| 2003-03-27 16:15:23 [1856] init urllist /usr/local/squidGuard/db/porn/urls
| 2003-03-27 16:15:23 [1856] init expressionlist
/usr/local/squidGuard/db/porn/expressions
| 2003-03-27 16:15:23 [1856] squidGuard 1.2.0 started (1048778123.765)
| 2003-03-27 16:15:23 [1856] squidGuard ready for requests (1048778123.927)
| 2003-03-27 16:15:23 [1856] squidGuard stopped (1048778123.928)
Maybe one of you can help me.
Thank you very much,
Daniel Weber