diogerafael
(usa Debian)
Enviado em 31/01/2011 - 23:32h
########## SQUID MEIO A MEIO ###############
##############################################
##############################################
http_port 3128 transparent
visible_hostname EADSERVER
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
acl nocache url_regex -i "/squid/nocache.txt"
no_cache deny nocache
cache_mem 64 MB
maximum_object_size 100 MB
minimum_object_size 01 KB
maximum_object_size_in_memory 64 KB
cache_swap_low 90
cache_swap_high 95
#error_directory /squid/Portuguese/
#error_directory /usr/share/squid/errors/Portuguese/
cache_dir ufs /var/spool/squid 10000 32 512
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_mgr suporte.ti.to@hrc-ltda.com.br
cache_store_log /var/log/squid/store.log
pid_filename /var/run/squid.pid
debug_options ALL,1
client_netmask 255.255.255.255
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
###############################################################################################################
################################### WINDOWS UPDATE XP ################################################
refresh_pattern windowsupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern
www.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims
###############################################################################################################
#BYPASS
acl bypass url_regex "/squid/bypass.txt"
no_cache deny bypass
always_direct allow bypass
acl all src 0.0.0.0/0.0.0.0
acl liberados url_regex -i "/squid/liberados.txt"
acl ip_ti src "/squid/ip_ti.txt"
#acl mac_ti arp /squid/mac_ti.txt"
acl ip_administrativo src "/squid/ip_administrativo.txt"
acl ip_labin src "/squid/ip_labin.txt"
acl ip_academicos src "/squid/ip_academicos.txt"
acl ip_wiseup src "/squid/ip_wiseup.txt"
acl ip_dhcp src "/squid/ip_dhcp.txt"
acl ip_bloqueados src "/squid/ip_bloqueados.txt"
acl wiseup url_regex -i "/squid/wiseup.txt"
acl negados url_regex -i "/squid/negados.txt"
acl ext urlpath_regex -i "/squid/ext.txt"
acl
[*****] url_regex -i "/squid/
[*****].txt"
acl msn url_regex -i "/squid/msn.txt"
acl socialnet url_regex -i "/squid/socialnet.txt"
acl tv url_regex -i "/squid/tv.txt"
acl radios url_regex -i "/squid/radios.txt"
acl jogos url_regex -i "/squid/jogos.txt"
acl batepapo url_regex -i "/squid/batepapo.txt"
http_access deny ip_bloqueados
http_access allow liberados
http_access allow ip_ti
#http_access allow mac_ti
http_access allow ip_dhcp
http_access allow wiseup !ip_administrativo !ip_labin !ip_academicos !ip_dhcp
http_access deny negados
http_access deny
[*****]
http_access deny ext
http_access deny msn
http_access deny socialnet
http_access deny tv
http_access deny radios
http_access deny batepapo
http_access deny jogos
http_access allow all
http_reply_access allow all
coredump_dir /var/spool/squid