abritto
(usa Slackware)
Enviado em 25/08/2009 - 12:06h
Aqui está e vlw por responder....Este é o mesmo squid.conf que uso em outra versão e ta normal
http_port 3128
cache_mem 8 MB
cache_mgr alebritto@gmail.com
cache_dir ufs /usr/local/squid/var/cache 100 16 256
maximum_object_size 2048 KB
emulate_httpd_log on
visible_hostname Proxy
error_directory /usr/local/squid/share/errors/Portuguese
cache_effective_user squid
cache_effective_group squid
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
auth_param basic program /usr/local/squid/libexec/ncsa_auth /usr/local/squid/etc/passwd
auth_param basic children 5
auth_param basic realm Pro-Sinalizacao: Acesso Monitorado
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl authentication proxy_auth REQUIRED
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
#############USERS FREE#################################
acl freeusers proxy_auth master
#Acesso livre para usuarios em freeusers
http_access allow freeusers
########################################################
acl SSL_ports port 443 563
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 CONNECT method CONNECT
##############SITES LIBERADOS###########################
acl noproxy dstdomain rad.msn.com/ADSAdClient31.dll? .correios. .correio.
http_access allow noproxy
########################################################
#Liberando por horário
#acl almoco time MTWHF 12:00-14:00
#################Restricao por grupo###################
#Block para grupo
acl blocktogroup url_regex -i "/usr/local/squid/etc/blockgroup"
http_access deny blocktogroup
#
#TI
acl auth_cpd proxy_auth alexandre
acl sites_ti url_regex -i "/usr/local/squid/etc/sites_ti.txt"
http_access allow auth_cpd sites_ti
#Administrativo
#acl auth_administrativo proxy_auth italo
#acl sites_administrativo url_regex -i "/usr/local/squid/etc/sites_administrativo.txt"
#http_access allow auth_administrativo sites_administrativo
#####################################################
#################Negando tudo##########################
acl restrito url_regex -i "/usr/local/squid/etc/restrito"
http_access deny restrito
#######################################################
######################################################################
#Bloqueando blacklist spyware
acl spyware url_regex "/usr/local/squid/etc/blacklistspy.txt"
http_access deny spyware
http_access deny download
http_access allow authentication
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
icp_access allow all