turboforce
(usa Linux Mint)
Enviado em 28/11/2012 - 15:37h
renato_pacheco escreveu:
Uma pergunta: aonde q se encontra o seu arquivo d configuração do squidGuard.conf? O caminho é /etc/squid/squidGuard.conf msm?
Vc deixou seu arquivo de configuração dessa forma?
#######################################################################
dbhome /var/lib/squidguard/db
logdir /var/log/squidguard
dest aggressive {
domainlist blacklists/aggressive/domains
urllist blacklists/aggressive/urls
}
dest
[*****] {
domainlist blacklists/
[*****]/domains
urllist blacklists/
[*****]/urls
}
acl {
default {
pass all !aggressive !
[*****]
redirect
http://www.ligvoipbrasil.com.br
}
}
#####################################################################
Notei que a palavra "all" está depois de "pass".
Coloquei depois de "!
[*****]".
eis o resultado.
root@linux-server:/etc/squid# echo "http://www.xnxx.com localhost/- - GET" | /usr/bin/squidGuard -c /etc/squid/squidGuard.conf -d
2012-11-28 15:32:51 [19730] New setting: dbhome: /var/lib/squidguard/db
2012-11-28 15:32:51 [19730] New setting: logdir: /var/log/squidguard
2012-11-28 15:32:51 [19730] init domainlist /var/lib/squidguard/db/blacklists/
[*****]/domains
2012-11-28 15:32:51 [19730] loading dbfile /var/lib/squidguard/db/blacklists/
[*****]/domains.db
2012-11-28 15:32:51 [19730] init urllist /var/lib/squidguard/db/blacklists/
[*****]/urls
2012-11-28 15:32:51 [19730] loading dbfile /var/lib/squidguard/db/blacklists/
[*****]/urls.db
2012-11-28 15:32:51 [19730] squidGuard 1.4 started (1354123971.611)
2012-11-28 15:32:51 [19730] squidGuard ready for requests (1354123971.613)
2012-11-28 15:32:51 [19730] source not found
2012-11-28 15:32:51 [19730] no ACL matching source, using default
302:
http://www.ligvoipbrasil.com.br localhost/- - GET
2012-11-28 15:32:51 [19730] squidGuard stopped (1354123971.614)
Agora o meu está funcionado! Obrigado.