nilsonac
(usa Ubuntu)
Enviado em 07/12/2012 - 14:26h
Obrigado pela atenção, porém retirei várias linhas do squid referente as portas que vc comentou e outras mais, e o squid diz que está funcionando normalmente, mas não consegui fazer de fato funcionar o armazenamento de acessos ACCESS.LOG e o funcionamento dos bloqueios nas ACLs.
segue abaixo as mudanças que eu fiz.
# Configuracao Geral
http_port 3128 transparent
hierarchy_stoplist cgi-bin ?
cache_mem 900000
cache_dir ufs /squid_cache 1024 16 1024
##### Nilson>
cache_access_log /squid_cache/access.log
access_log /squid_cache/access.log squid
cache_log /squid_cache/cache.log
cache_store_log /squid_cache/store.log
######### Fim Nilson
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880
acl apache rep_header Server ^Apache
#broken_vary_encoding allow apache
#extension_methods REPORT MERGE MKACTIVITY CHECKOUT
visible_hostname proxyadm.io.usp.br
logformat squid %ts.%03tu %6tr %>a %<st %rm %ru %un %Sh/%<A %mt
cache_mgr admin_io@listas.usp.br
mail_from admin_io@listas.usp.br
hosts_file /etc/hosts
maximum_object_size 8096000
coredump_dir /squid_cache/
cache_effective_user proxy
cache_effective_group proxy
# ACLs do sistema (nao altere)
#acl all src 127.0.0.1 ::1
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
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 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 Safe_ports port 403 # decap
#acl Safe_ports port 473 # hybrid-pop
#acl Safe_ports port 370 # codaauth2
#acl Safe_ports port 582 # scc-security
acl Safe_ports port 587 # submission
#acl Safe_ports port 344 # Prospero Data Access Protocol
#acl Safe_ports port 200 # IBM System Resource Controller
#acl Safe_ports port 320 # Storage da Linksys
#acl Safe_ports port 301 # Unassigned (Yahoo Mail)
acl purge method PURGE
acl CONNECT method CONNECT
# Diretivas geral (nao altere)
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
http_access allow localhost
### ????
always_direct allow localhost
# ACL de sites e extensoes
acl sites url_regex -i "/etc/squid/sites.txt"
#acl palavras url_regex -i "/etc/squid/palavras.txt"
acl palavras url_regex -i bucet
[*****] bunda
acl redessociais url_regex -i "/etc/squid/redessociais.txt"
#acl extban url_regex -i "/etc/squid/extban.txt"
#acl url_mp3 url_regex -i \.mp3$
#acl url_avi url_regex -i \.avi$
#acl url_mpeg url_regex -i \.mpeg$
#acl url_mpg url_regex -i \.mpg$
#acl url_mov url_regex -i \.mov$
acl url_torrent url_regex -i \.torrent$
#acl url_exe url_regex -i \.exe$
acl url_scr url_regex -i \.scr$
http_access deny sites
http_access deny palavras
#http_access deny extban
#http_access deny url_mp3
#http_access deny url_avi
#http_access deny url_mpeg
#http_access deny url_mpg
#http_access deny url_mov
#http_access deny url_exe
http_access deny url_scr
http_access deny url_torrent
# ACL de horarios
acl horario time M T W H F 8:00-18:00
acl horario2 time M T W H F S S 7:00-22:00
acl horario3 time M T W H F 9:00-18:00
acl foradohorario time M T W H F 18:00-23:00
acl testehorario time M T W H F 10:00-12:00
acl weekend time A-S
# ACL de restricao apenas para .usp.br
acl redeusp dstdomain .usp.br
# ACLs da rede 192.168.0.0/16
#acl nobreakcpd src 192.168.32.254/30
#http_access allow nobreakcpd
# ACLs para rede 192.168.64.0/24
acl network64 src 192.168.64.0/24
http_access allow network64
#ACLs para rede 192.168.70.0/24 (Administracao)
#maquinas administrativas o horario e das 7 as 20 horas
acl network70 src 192.168.70.0/24
http_access deny palavras
# novo horario para a rede network70
http_access allow network70 horario2
http_access deny network70
#ACLs para rede 192.168.72.0/24 ( Rede da Biblioteca)
# Restricao de acesso, apenas rede da USP
acl network72 src 192.168.72.0/24
http_access deny network72 redessociais
http_access allow network72 horario2
http_access deny network72
#ACLs para rede 192.168.73.0/24 (Administracao)
# ACL com restricao de horario mas com liberacao para
# usar nos finais de semana
acl network73 src 192.168.73.0/24
http_access allow network73 horario2
http_access allow network73 weekend
http_access deny network73
# Deny all
http_access deny all
188,1 Bot