olha o conf do squid
http_port 3128 transparent
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
#acl to_localhost dst 127.0.0.0/8
#acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl MyNetwork src 192.168.254.0/24 # RFC1918 possible internal network
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow MyNetwork
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
redirect_program /usr/bin/squidGuard
cache_dir ufs /var/spool/squid 100 16 256
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
cache_effective_user proxy
hosts_file /etc/hosts
coredump_dir /var/spool/squid
e do squidGuard
#
# CONFIG FILE FOR SQUIDGUARD
#
dbhome /var/lib/squidguard/db/blacklists
logdir /var/log/squid
src admin {
ip 192.168.254.1
}
src users {
ip 192.168.254.2-192.168.254.254
}
dest adult {
domainlist adult/domains
urllist adult/urls
}
dest aggressive {
domainlist aggressive/domains
urllist aggressive/urls
}
dest {
domainlist chat/domains
urllist chat/urls
}
dest entertainment {
domainlist entertainment/domains
urllist entertainment/urls
}
dest games {
domainlist games/domains
urllist games/urls
}
dest hacking {
domainlist hacking/domains
urllist hacking/urls
}
dest malware {
domainlist malware/domains
urllist malware/urls
}
dest onlinegames {
domainlist onlinegames/domains
urllist onlinegames/urls
}
dest phishing {
domainlist phishing/domains
urllist phishing/urls
}
dest porn {
domainlist porn/domains
urllist porn/urls
expressionlist porn/urls
}
dest proxy {
domainlist proxy/domains
urllist proxy/urls
}
dest sexuality {
domainlist sexuality/domains
urllist sexuality/urls
}
dest spyware {
domainlist spyware/domains
}
dest violence {
domainlist violence/domains
urllist violence/urls
}
dest virusinfected {
domainlist virusinfected/domains
urllist virusinfected/urls
}
acl {
admin {
pass all
}
users {
pass !aggressive !chat !entertainment !games !hacking !malware !onlinegames !phishing !porn !proxy !sexuality !spyware !violence !virusinfected all
}
default {
pass none
redirect http://192.168.0.146/squidguard/proibido.htm
}
}2009/3/21 Fabiano Pires <fabiano.pires@gmail.com>2009/3/19 Thiago Silveira Alexandre <thsalex@gmail.com>Senhores,
estou configurando o squid em um servidor estou com um problemao aqui. Toda vez que eu inicio o serviço do squid, ele começa a criar arquivos brekleydb aos montes no diretório /var/tmp e rapidamente a partição fica cheia e o serviço para. Já configurei o squid várias vezes e nunca aconteceu isso. Se alguem puder me ajudar ficarei grato.
Obrigado pela atenção.
--
Thiago Silveira Alexandre
Pode fornecer mais detalhes, porque tá meio vago ...
Tipo:
* Enviar (se possível) o squid.conf (talvez com IPs alterados).
* utiliza o squidGuard? Ou outro programa externo ao squid?
* Qual o tamanho da partição que hospeda o /var/tmp?
* Algo mais que você julge útil ...
No aguardo,
Fabiano
--
Fabiano Pires
LPIC-2
http://pragasdigitais.blogspot.com/
Livrando você da escória da Internet!
--
Thiago Silveira Alexandre