hudson pereira
(usa Slackware)
Enviado em 06/11/2010 - 21:27h
http_port 3128
##########################################################
hierarchy_stoplist cgi-bin ?
#acl QUERY urlpath_regex cgi-bin \?
#no_cache deny QUERY
##### TAG DA SECAO CACHE SIZE #############################
cache_mem 100 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 10 MB
minimum_object_size 2 KB
maximum_object_size_in_memory 128 KB
##### TAGS DA SECAO CACHE LOG E CACHE DIRETORIO ############
cache_dir ufs /var/spool/squid 192 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
ftp_user Squid@
# Emular o log de servidores web
#emulate_httpd_log off
################# TAGS DA SECAO AUTH_PARAM ###############
ident_timeout 10 seconds
shutdown_lifetime 30 seconds
auth_param basic program /etc/webmin/squid/squid-auth.pl /etc/webmin/squid/users
auth_param basic children 5
auth_param basic realm ProxyServer - **Digite seu usuario e senha**
auth_param basic credentialsttl 2 hours
##### TAGS DA SECAO PARA TUNING DO SQUID ################
# acessar aplicaçs dinamicas na web (reload) default.
#refresh_pattern ^ftp: 1440 20% 10080
#refresh_pattern ^gopher: 1440 0% 1440
#refresh_pattern . 0 20% 4320
##### TAGS DA SECAO SERVIDORES DE NOMES #################
dns_nameservers 200.x.x.x
dns_nameservers 200.x.x.x
dns_nameservers 200.x.x.x
dns_nameservers 200.x.x.x
dns_nameservers 200.x.x.x
###########TAGS DA SECAO ACCESS CONTROL LIST##############
#REGRAS ANTIGAS
#### Criar os arquivos palavras e sites ***
acl msn dstdomain "/etc/squid/listas/DMSN"
acl msnmsg url_regex ^http://gateway\.messenger\.hotmail\.com/gateway/gateway\.dll
##### LIBERA ACCESSO DIRETO
#http_access allow sitesdiretos
## ACL DEFAULT ##
acl all src 10.1.1.0/24
acl manager proto cache_object
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 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
## ACL LOGON ##
acl full proxy_auth hudson
acl nivel0 proxy_auth teste
acl nivel1 proxy_auth hudson
#acl nivel2 proxy_auth
acl test proxy_auth teste
## ACL SITES ##
acl bkdown url_regex -i "/etc/squid/filtros/download"
acl bksites1 dstdomain "/etc/squid/filtros/bksites1"
acl bksites2 dstdomain "/etc/squid/filtros/bksites2"
acl lbsites_sctl dst 192.168.20.33 192.168.4.13 192.168.4.23 192.168.4.25
acl lbsites_trab dstdomain "/etc/squid/filtros/sites_trab"
#acl msn_lb proxy_auth "/etc/squid/usermsn"
acl sitesdiretos dst 192.168.20.33 192.168.4.13 192.168.4.23 192.168.4.25
########NECESSARIO PARA AUTENTICAR USUARIOS############
acl user proxy_auth REQUIRED
#######################################################
## ACESSOS ##
http_access allow full
http_access allow nivel1 !bksites1
http_access allow nivel0 lbsites_trab !bksites2
http_access allow nivel0 lbsites_sctl
http_access allow test lbsites_trab !bksites2
http_access allow test lbsites_sctl
#http_access allow msn_lb msn
## ACESSOS DEFAULT ##
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all msn
http_access deny all !sitesdiretos
#reply_body_max_size 1 allow all
icp_access allow all
#----------------------------------------------------------
#endereco da sua placa que vai aceitar conexao do proxy.
# placa interna.
visible_hostname capeletti.router
###########################################################
#Default
#announce_period 0
#Em caso de falhas, os sistemas Unix geram sempre um arquivo de core dos programas.
#O Squid normalmente guarda os arquivos de core gerados por ele no diretó de cache.
#Com essa opç éossíl configurar onde serármazenado esse arquivo.
#coredump_dir /var/log/squid/squid
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
#cache_replacement_policy heap LFUDA
#memory_replacement_policy heap LFUDA