
#	WELCOME TO SQUID 2
#	------------------
#
#Default:
 cache_mem 128 MB

#Default:
 cache_replacement_policy heap GDSF

#Default:
 memory_replacement_policy heap GDSF

#Default:
 cache_dir diskd /var/spool/squid 1800 16 256

#Suggested default:
refresh_pattern ^ftp:		1440	20%	10080
refresh_pattern ^gopher:	1440	0%	1440
refresh_pattern .		0	20%	4320

#Recommended minimum configuration:
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
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 cliente src 192.0.0.0/255.255.255.0
acl cliente_prohibido src "/etc/squid/no_internet"

acl permitidas dstdomain .seniat.gov.ve
acl prohibidas dstdomain .msads.net .gator.com .hotbar.com .xxxtoolbar.com .v6.cz helpdemos.com .jbplus.cz .sunbud.com.pl .nadodrze.pl atomique.pl

acl permitido url_regex -i "/etc/squid/sitios"

acl virus urlpath_regex -i \.(pif|bat|cmd|cpl)$ \....\.(exe|vbs|pif|scr|bat|cmd)$ /6\.jpg$ /\.pkt$ /blah\.txt$
acl spyware   req_mime_type   ^app/x-hotbar-xip20$   ^application/x-icq$ ^.*AIM.* ^application/x-comet-log$ ^application/x-pncmd$

acl horario_manana time MTWHF 8:00-12:00
acl horario_tarde time MTWHF 14:00-18:00

acl msn_messenger urlpath_regex -i ADSAdClient31.dll
acl msn_messenger2 url_regex -i ADSAdClient31.dll
acl messenger req_mime_type ^application/x-msn-messenger$
acl messenger_repl rep_mime_type ^application/x-msn-messenger$

acl msn7 url_regex -i gateway.dll

acl messenger_allow srcdomain proxy.tecmin.com.ve

acl yahoo url_regex http.pager.yahoo.com
acl yahooo url_regex http.msg.yahoo.com
acl yahoooo url_regex messenger.yahoo.com

http_access deny prohibidas
http_access deny virus
http_access deny spyware
http_access allow localhost

http_access deny messenger
http_access deny msn7

http_access deny yahoo
http_access deny yahooo
http_access deny yahoooo

http_access allow cliente_prohibido permitido
http_access deny cliente_prohibido
http_access allow cliente

http_access deny all

http_reply_access allow messenger_allow messenger
http_reply_access deny messenger
http_reply_access allow all

#Default:
httpd_accel_port 80
httpd_accel_host virtual

#Default:
 httpd_accel_with_proxy on

#Default:
 httpd_accel_uses_host_header on

#Default:
# none
acl Descargas urlpath_regex -i .(rpm|zip|exe|deb|gz|bz2|tar|mp3|wmv|wma|avi|mpeg|mpg|hdr)$
delay_pools 1
delay_class 1 2
delay_access 1 allow Descargas
delay_parameters 1 30000/35000  20000/35000

delay_access 1 allow Descargas

redirect_program /usr/bin/squidGuard -c /etc/squid/squidguard.conf
redirect_children 5
redirector_bypass on
