tiagoferla
(usa Slackware)
Enviado em 08/03/2013 - 10:14h
visible_hostname ProxyNet
http_port 3128
hierarchy_stoplist cgi-bin ?
pid_filename /.nexuit/squid/var/run/squid.pid
#------- ORGANIZAR O LOG DO MIMES
log_mime_hdrs on
# -------------- PARAMETROS DA AUTENTICACAO ---------------------
auth_param basic program /.nexuit/squid/libexec/basic_ncsa_auth /.nexuit/squ$
auth_param basic realm "ProxyNet"
auth_param basic children 5
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
############################################################################$
#### ACL QUE NAI SEI PARA OQ SERVER - INICIO
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 20 # 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 Safe_ports port 47908 # porta fies
acl CONNECT method CONNECT
############################################################################$
acl redelocal src 192.168.254.0/24
#-------ACL DOS USUARIOS----------------------------------------------------$
acl autenticados proxy_auth REQUIRED
acl users_gerencia proxy_auth "/.nexuit/squid/arq/users_gerencia"
acl users_geral proxy_auth "/.nexuit/squid/arq/users_geral"
#-------ACL DAS PALAVRAS----------------------------------------------------$
acl lib_palavras url_regex -i "/.nexuit/squid/arq/lib_palavras"
acl bloq_palavras url_regex -i "/.nexuit/squid/arq/bloq_palavras"
#-------ACL DOS SITES-------------------------------------------------------$
acl lib_sites dstdomain -i "/.nexuit/squid/arq/lib_sites"
acl bloq_sites dstdomain -i "/.nexuit/squid/arq/bloq_sites"
#-------ACL SITES PORNOGRAFICOS---------------------------------------------$
acl sites_xxx dstdomain -i "/.nexuit/squid/arq/sites_xxx"
#-------ACL PARA LIBERAR IPS FICOS------------------------------------------$
#acl tiagoferla src 172.26.50.100
#-------ALC PARA BLOQUEAR MSN-----------------------------------------------$
acl bloq_msn url_regex -i "/.nexuit/squid/arq/msn"
#-------ACL PARA BLOQUEAR SKYPE
#acl skype dstdomain -i "/.nexuit/squid/arq/skype"
acl bloq_skype url_regex -i "/.nexuit/squid/arq/skype_url"
#-------ACL PARA BLOQUEAR EXTENSOES-----------------------------------------$
acl bloq_ext_mime rep_mime_type -i "/.nexuit/squid/arq/bloq_ext_mime"
# \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\$
# \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\$
# INICIO DA PERMISSÕES - QUANTO MAIS ACIMA, MAIS LIBERADO
#http_access allow tiagoferla
http_access allow lib_sites
http_access allow lib_palavras
http_access deny sites_xxx
#// MSN
#//
http_access deny bloq_msn
#// AUTENTICA USERS_GERENCIA
#//
http_access allow autenticados users_gerencia
#// EXTENSOENS DOS ARQUIVOS
#// NAO USERS GERENCIA
http_reply_access deny bloq_ext_mime !users_gerencia
#// SKYPE
#//
#http_access deny skype
http_access deny bloq_skype
#// SITES E PALAVRAS
#//
http_access deny bloq_palavras
http_access deny bloq_sites
#// AUTENTICA USERS_NIVEL 1 (UM)
#//
http_access allow autenticados users_geral
#// AUTENTICA TODOS USUARIOS (NAO USAR)
#//
#http_access allow autenticados
http_access allow redelocal
http_access allow Safe_ports
http_access allow SSL_ports
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
##################################################################
# ------------ REFERE-SE AO CACHE DO SERVIDOR ----------------
cache_mem 256 MB
maximum_object_size 512 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 256 KB
#esvazia o cache
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /.nexuit/squid/var/cache 100 16 256
#log do cache
cache_log /.nexuit/squid/var/logs/cache.log
#log de requisições
access_log /.nexuit/squid/var/logs/access.log
#Log de objetos guardados. Pode ser desativado.
cache_store_log none
#------- ERROS EM PORTUGUES
error_directory /.nexuit/squid/share/errors/pt-br
# Add any of your own refresh_pattern entries above these.
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