neogorn
(usa CentOS)
Enviado em 14/10/2011 - 11:11h
Bom dia pessoal, estou a 2 dois dias tentanto fazer o squidguard 1.3 bloquear paginas no centos 6, mas nada, ja li de cabo a rabo a documentação do site squidguard, segui tutorial, mas mesmo assim nao obtive sucesso.ja editei as permissões de todas as pasta de blacklist e arquivos .conf. Já estou sem idéias pra fazer testes.
Aguem recomenda alguma coisa?
PS: A mesma configuração estou usando no ubuntu server 11.04 e funciona.
#squid.conf
http_port 3128
visible_hostname gateway
cache_mem 128 MB
maximum_object_size_in_memory 128 KB
maximum_object_size 512 MB
cache_dir ufs /var/spool/squid 4096 16 256
cache_access_log /var/log/squid/access.log
#acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl SSL_ports port 443 563
acl Safe_ports port 21 80 443 563 70 210 280 488 59 777 901 1025-65535
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
redirect_program /usr/bin/squidGuard -c /etc/squid/squidguard.conf
acl redelocal src 192.168.0.0/24
http_access allow localhost
http_access allow redelocal
http_access deny all
~
#squidguard.conf
dbhome /var/lib/squidguard/db
logdir /var/log/squid
dest
[*****] {
domainlist
[*****]/domains
urllist
[*****]/urls
}
dest bloqueados {
domainlist bloqueados/domains
urllist bloqueados/urls
}
acl {
default {
pass !
[*****] !bloqueados all
redirect
http://192.168.0.4
}
}
#pemissões da pasta DB
drwxr-xr-x. 2 squid squid 4096 Out 13 11:03 ads
drwxr-xr-x. 2 squid squid 4096 Out 13 11:03 aggressive
drwxr-xr-x. 2 squid squid 4096 Out 13 11:03 audio-video
drwxr-xr-x. 2 squid squid 4096 Out 13 15:50 bloqueados
drwxr-xr-x. 2 squid squid 4096 Out 13 11:03 drugs
drwxr-xr-x. 2 squid squid 4096 Out 13 11:03 gambling
drwxr-xr-x. 2 squid squid 4096 Out 13 11:03 hacking
drwxr-xr-x. 2 squid squid 4096 Out 13 11:03 mail
drwxr-xr-x. 2 squid squid 4096 Out 13 13:28
[*****]
drwxr-xr-x. 2 squid squid 4096 Out 13 11:04 proxy
drwxr-xr-x. 2 squid squid 4096 Out 13 11:04 redirector
drwxr-xr-x. 2 squid squid 4096 Out 13 11:04 spyware
drwxr-xr-x. 2 squid squid 4096 Out 13 11:04 suspect
drwxr-xr-x. 2 squid squid 4096 Out 13 11:04 violence
drwxr-xr-x. 2 squid squid 4096 Out 13 11:04 warez