Hi,Phil,
The dest and acl statements need to be at the left-hand margin - no leading spaces:
dest gambling { domainlist gambling/domains urllist gambling/urls }
acl { default { pass !gambling all redirect http://127.0.0.1/squidGuard-blocked.html } }
Not pretty, but that is how I got it working....
Also, I've found it handy to use a script for testing rather than firing up squid each time:
echo "http://$1 10.3.2.1/- - GET" | squidGuard -d -c /path/to/squidGuard.conf
where $1 is the url.
Just put this line in a file, say called test-sg, make it executable, then:
$ ./test-sg www.somesite.com
results are displayed on the screen.
cheers, Phil
chloong wrote:
Phil Crooker wrote:
You probably need to include the location of the squidGuard.conf file, eg:i run it again specifying the squidGuard.conf path and check the log file.
squidGuard -c /path/to/squidGuard.conf -C /usr/local/squidGuard/db/gambling/domains
Also make sure the .db file is owned by the same user as the other files - if squidGuard can't read it, it will go into emergency mode. All activity is logged to the squidGuard.log file, so you can look there, too.
cheers, Phil
chloong wrote:
I downloaded the new blacklist and previously, i didn't have any .db file.
When i try to generate the .db using : squidGuard -C /usr/local/squidGuard/db/gambling/domains
and in hang there...
It will take long time to generate the .db file?
my squidGuard.conf is as below :
dbhome /usr/local/squidGuard/db logdir /usr/local/squidGuard/log
dest gambling { domainlist gambling/domains urllist gambling/urls }
acl { default { pass !gambling all redirect http://127.0.0.1/squidGuard-blocked.html } }
Is there any problem?
please help!
Thanks.
It still not able to start and go into emergency mode with this error :
parse error in configfile /usr/local/squidGuard/squidGuard.conf line 4
going into emergency mode
my squidGuard.conf is as above. Any error on line 4?
I want to create a .db and not update using -u because i didn't have a .db file yet.
Thanks.
Thanks a lot! it work on the testing stage already!!! YEAH!
I already tracing this for 1 day and unable to solve...
Thanks
-- Loong Chee How Systems and Network Engineer Internet Professional Services MCSB Systems (M) Berhad Ground Floor, Wisma Mirama, Jalan Wisma Putra, 50460 Kuala Lumpur Malaysia. Tel: +60 (3) 2141 7400 DID: +60 (3) 2147 4918 Fax: +60 (3) 2148 8010 http://www.mcsb.com email : [EMAIL PROTECTED]
