Fichero completito squid.conf

Enviado por el 04/03/2008

Fichero completito squid.conf

Este fichero de configuración me gusta un poco más.#Fichero Configuracion Squid#Localizacion: /etc/squid/squid.conf#Liberado bajo GPL v2 o variantes################################ # Parametros generales # ###############################visible_hostname proxy.miproxy.localhttp_port 3128 transparenthalf_closed_clients offftp_user anonymous@nospam.com################################### # CONFIGURACION CACHE # ###############################cache_mem 256 MBcache_dir ufs /tmp 1024 32 256cache_mgr user@mydomain.comcoredump_dir /var/spool/squid/cacheacl manager proto cache_objectcache_access_log /var/log/squid/access.logerror_directory /usr/share/squid/errors/Spanish/#################################### # CONTROL ANCHO DE BANDA(DELAY POOLS) # ###################################delay_pools 3delay_class 1 1delay_class 2 1delay_class 3 1delay_parameters 1 51200/358400delay_parameters 2 76800/358400delay_parameters 3 102400 /358400delay_initial_bucket_level 90############################### # TIEMPOS DE REFRESCO X FICHERO # ################################Refresco de la cache MIN PORCENTAJE MAX(MIN)##1440 = 1 dia#2880 = 2 dias#10080 = 7 dias#20160 = 14 dias#30240 = 21 dias##Ficheros comunes en sistemasrefresh_pattern \.iso$ 2880 80% 30240refresh_pattern \.deb$ 2880 80% 30240refresh_pattern \.tar.gz$ 2880 80% 30240refresh_pattern \.gz$ 2880 80% 30240refresh_pattern \.bz2$ 2880 80% 30240refresh_pattern \.exe$ 2880 80% 30240###Ficheros de imagenesrefresh_pattern \.jpg$ 1440 50% 2880refresh_pattern \.jpeg$ 1440 50% 2880refresh_pattern \.gif$ 1440 50% 2880refresh_pattern \.bmp$ 1440 50% 2880refresh_pattern \.png$ 1440 50% 2880refresh_pattern \.svg$ 1440 50% 2880refresh_pattern \.tif$ 1440 50% 2880refresh_pattern \.tiff$ 1440 50% 2880###Documentosrefresh_pattern \.xls$ 1440 80% 2880refresh_pattern \.doc$ 1440 80% 2880refresh_pattern \.odt$ 1440 80% 2880refresh_pattern \.rtf$ 1440 80% 2880refresh_pattern \.jpeg$ 1440 80% 2880refresh_pattern \.pdf$ 1440 80% 2880###Ficheros comprimidosrefresh_pattern \.zip$ 2880 80% 4320refresh_pattern \.rar$ 2880 80% 4320refresh_pattern \.arj$ 2880 80% 4320####################################### # LISTAS DE CONTROL DE ACCESO(ACLS) # ####################################acl SSL_ports port 443 563acl Safe_ports port 80acl Safe_ports port 21acl Safe_ports port 20acl Safe_ports port 443 563acl Safe_ports port 777acl all src 0.0.0.0/0.0.0.0acl localhost src 127.0.0.1/255.255.255.255acl lan src 192.168.1.0/255.255.255.0acl del1 src 192.168.2.0/255.255.255.0acl del2 src 192.168.3.0/255.255.255.0acl del3 src 192.168.4.0/255.255.255.0acl del4 src 192.168.5.0/255.255.255.0acl wifi src 172.16.0.0/255.255.255.240acl denywords url_regex "/etc/squid/denywords"acl denydomains dstdom_regex "/etc/squid/denydomains"###delay_access 2 allow landelay_access 2 allow del1delay_access 2 allow del2delay_access 2 allow del3delay_access 2 allow del4delay_access 2 deny alldelay_access 3 deny alldelay_access 1 deny all##http_access deny denywordshttp_access deny denydomainshttp_access allow lanhttp_access allow wifihttp_access allow del1http_access deny all