[6] Comentário enviado por
soubom em 24/08/2007 - 11:11h:
olá...
fiz o meu squid da seguinte forma:
acl all src 0.0.0.0/0.0.0.0
http_port 6588 transparent
always_direct allow all
visible_hostname srvdombosco
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_mem 128 MB
cache_swap_low 90
cache_swap_high 95
minimum_object_size 0 KB
coredump_dir /var/spool/squid
access_log /var/log/squid/access.log
maximum_object_size_in_memory 128 KB
ipcache_size 2048
ipcache_low 90
ipcache_high 95
fqdncache_size 2048
cache_replacement_policy lru
memory_replacement_policy lru
cache_dir ufs /var/spool/squid/ 500 16 256
cache_access_log /var/log/squid/access.log
#AUTENTICAÇÃO
auth_param basic program /usr/libexec/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm Digite sua Senha:
auth_param basic credentialsttl 2 hour
auth_param basic casesensitive off
#ACL's
#usuários
acl restrito1 proxy_auth "/etc/squid/restrito1"
acl restrito2 proxy_auth "/etc/squid/restrito2"
acl moderado proxy_auth "/etc/squid/moderado"
acl total proxy_auth "/etc/squid/total"
#paginas
acl bloqueios_url url_regex /etc/squid/bloqueios/bloqueios_url"
acl liberados_url url_regex "/etc/squid/bloqueios/liberados_url"
acl liberados_moderados url_regex "/etc/squid/bloqueios/liberados_moderados"
acl bloqueios_moderados url_regex "/etc/squid/bloqueios/bloqueios_moderados"
acl porn1 url_regex "/etc/squid/bloqueios/porn/urls"
acl porn2 url_regex "/etc/squid/bloqueios/porn/domains"
acl palavras dstdom_regex "/etc/squid/bloqueios/palavras"
#downloads
acl bloquear_download url_regex -i .exe .scr .pif .bat .scr .pif .bat
#Grupos
acl restrito1 proxy_auth "/etc/squid/restrito1"
acl restrito2 proxy_auth "/etc/squid/restrito2"
acl moderado proxy_auth "/etc/squid/moderado"
acl total proxy_auth "/etc/squid/total"
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#acl all src 0.0.0.0/0.0.0.0
acl password proxy_auth REQUIRED
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
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 CONNECT method CONNECT
#Horarios
acl hcomercial1 time 08:00-12:00 #Ainda preciso descobrir
acl hrestrito2 time 12:01-13:00 #como organizar os horarios
acl hrestrito1 time 13:01-14:00 #com essa faixa ou modificar
acl hcomercial2 time 14:01-18:00 #
acl hrestrito3 time 18:01-19:00 #
acl hrestrito4 time 19:01-20:00 #
acl hcomercial3 time 20:01-22:30 #
# acl hmadrugada time 22:31-07:59 #
http_access allow total
http_access allow liberados_moderados
http_access deny bloqueios_moderados
http_access deny porn1
http_access deny porn2
http_access deny palavras
http_access deny bloquear_download
http_access allow moderado
http_access allow hrestrito1
http_access allow liberados_url
http_access deny hcomercial1
http_access deny hcomercial2
http_access allow restrito1
http_access allow hrestrito2
http_access allow liberados_url
http_access allow restrito2
acl manager proto cache_object
http_access allow password
no_cache deny QUERY
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
cache_effective_user squid
cache_effective_group squid
##fim
e o proxy transparente nao funciona!
o que pode estar errado?