piaui
(usa Debian)
Enviado em 24/09/2012 - 21:12h
segue o squid.conf
eu executei tail listando as ultimas linhas. daí teve um link que apareceu todo bagunçado mesmo.
desde já agradeço a atenção.
#Porta default do proxy
http_port 5080 transparent
#O nome do servidor
visible_hostname gnuserver
#Cache
cache_mem 128 mb
maximum_object_size_in_memory 128 kb
cache_swap_low 90
cache_swap_high 95
cache_access_log /cache/squid/logs/access.log
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
#Regras de acesso para rede local
acl manager proto cache_object
acl all src 0.0.0.0/0
acl rede src 192.168.1.0/24
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 #http
acl Safe_ports port 21 #ftp
acl Safe_ports port 70 #gopher
acl Safe_ports port 210 #wais
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 901 #swat
acl Safe_ports port 443 563 #https e snews
acl Safe_ports port 1025-65535 #portas altas
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
# Traducao de erros
error_directory /usr/share/squid/errors/Portuguese
acl blacklist url_regex -i "/etc/squid/acls/blacklist.txt"
acl social_network url_regex -i "/etc/squid/acls/social_network.txt"
acl im url_regex -i "/etc/squid/acls/im.txt"
acl multimidia url_regex -i "/etc/squid/acls/multimidia.txt"
acl
[*****] url_regex -i "/etc/squid/acls/
[*****].txt"
acl shopping url_regex -i "/etc/squid/acls/shopping.txt"
acl webmail url_regex -i "/etc/squid/acls/webmail.txt"
acl ips_liberados src "/etc/squid/ipspermitidos.txt"
acl ips_bloqueados src "/etc/squid/ipsbloqueados.txt"
acl sit_almoco url_regex -i "/etc/squid/sitalmoco.txt"
acl sit_livres url_regex -i "/etc/squid/sitlivres.txt"
acl ips_compradores src "/etc/squid/ipscompradores.txt"
acl h_almoco time MTWHF 12:00-14:00
acl dominios_bloq dstdomain -i "/etc/squid/dominios.txt"
acl palavras url_regex -i "/etc/squid/acls/palavras.txt"
# BLOQUEIA STREAMING E DOWNLOAD
acl streaming rep_mime_type ^video/x-ms-asf
acl proibir_download urlpath_regex -i \.aif \.aifc \.aiff \.asf \.asx \.avi \.au
\.m3u \.med \.mp3 \.m1v \.mp2 \.mp2v \.mpa \.mov \.mpg \.mpeg \.ogg \.pls \.ram
\.ra \.ram \.snd \.wma \.wmv \.wvx \.mid \.midi \.rmi \.mp4 \.exe \.msi \.vqf \
.tar \.gz \.zip \.rar \.ram \.rm \.iso \.wav \.mov \.tar.gz \.dmg \.sh$ \.flv
################# BLOQUEAR GTALK ###########################
acl gtalk url_regex -i .mail.google.com/mail/channel/bind
acl gtalk url_regex -i .talk.google.com:443
acl gtalk url_regex -i .talk.google.com:5222
acl gtalk url_regex -i .desktop.google.com/download/googletalk/google-talk-versioncheck.txt?
acl gtalk url_regex -i .chatenabled.mail.google.com
acl gtalk url_regex -i .talkx.l.google.com
acl gtalk url_regex -i .talkgadget.google.com
acl gtalk url_regex -i .tools.google.com
acl gtalk url_regex -i .filetransferenabled.mail.google.com
http_access allow localhost
http_access allow ips_liberados
http_access deny ips_bloqueados
http_access deny gtalk all
http_access allow sit_livres
http_access deny palavras
http_access deny dominios_bloq
http_reply_access deny streaming
#http_access deny proibir_download
http_access deny blacklist
http_access deny social_network
http_access deny im
http_access deny multimidia
http_access deny
[*****]
http_access allow ips_compradores
http_access deny shopping
#http_access deny webmail
http_access allow rede
#http_access deny sit_permitidos
http_access deny all
#maximo tamanho dos arquivo cache no hd
maximum_object_size 20 MB
minimum_object_size 0 KB
#regra que começa a esvaziar / substituir arquivos no cache em 90%
cache_swap_low 90
cache_swap_high 95
#indicação de localização da pasta de arquivos cache e em sequência valor
#total em MB de espaço no hd a ser usado pelo cache, numero de pastas, e
#numero de subpastas do cache.
cache_dir ufs /cache/squid/spool/squid 40960 256 512
#intervalos de tempos que o proxy verificara os arquivos dos site acessado
#conferem com o do cache, o valor 4560 significa 04 dias
refresh_pattern ^ftp: 15 20% 4560
refresh_pattern ^gopher: 15 0% 4560
refresh_pattern . 15 20% 4560