Biruts
(usa Ubuntu)
Enviado em 15/11/2012 - 14:43h
Boa tarde galera, será que alguem pode ajudar-me... Meu squid3 foi instalado e habilitado na inicialização do servidor, só que minhas regras ACLs não estão filtrando conteudos... vou mandar meu squid para melhor entendimento...
##squiq.conf
http_port 3128 transparent
hierarchy_stoplist cgi-bin ?
acl QUERY url_regex i cgi-bin \?
no_cache deny QUERY
cache_mem 64 MB
maximum_object_size_in_memory 512 KB
maximum_object_size 6849240 KB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_access_log /var/log/squid3/access.log
visible_hostname Servidor
ftp_user
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
error_directroy /usr/share/squid3/errors/pt-br
acl all src
acl redelocal src 192.168.254.0/24
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl purge method PURGE
acl CONNECT method CONNECT
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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 Safe_ports port 3389 # Terminal Server
acl Safe_ports port 3390 # Terminal Server
acl Safe_ports port 3636 # Cameras
acl Safe_ports port 37777 # Terminal Server
acl Safe_ports port 5100 # Suporte Remoto Luan
acl Safe_ports port 5101 # Suporte Remoto Vinicius
acl Safe_ports port 8012 # Sascar
acl Safe_ports port 8013 # Sascar
acl SSL_ports port 443 563 # https, snews
acl total src "/etc/squid3/conf/total"
acl administrativo src "/etc/squid3/conf/administrativo"
acl liberados_administrativo url_regex -i "/etc/squid3/conf/liberados_administrativo"
acl caixa src "/etc/squid3/conf/caixa"
acl liberados_caixa url_regex -i "/etc/squid3/conf/liberados_caixa"
acl vendas src "/etc/squid3/conf/vendas"
acl liberados_vendas url_regex -i "/etc/squid3/conf/liberados_vendas"
acl suporte src "/etc/squid3/conf/suporte"
acl bloqueados_suporte url_regex -i "/etc/squid3/conf/bloqueados_suporte"
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow total
http_access allow administrativo liberados_administrativo
http_access allow caixa liberados_caixa
http_access allow vendas liberados_vendas
http_access deny bloqueados_suporte
#http_access deny all #Parece que no Squid3 nao e necessario essa linha