#
# OPTIONS FOR AUTHENTICATION
# -----------------------------------------------------------------------------
#auth_param basic program <uncomment and complete this line>
#auth_param basic program /usr/lib/squid/ldap_auth -b ou=usuarios,dc=dominio,dc=com,dc=br 127.0.0.1
#auth_param basic children 5
#auth_param basic realm Squid proxy-caching web server
#auth_param basic credentialsttl 2 hours
#auth_param basic casesensitive off

# ACCESS CONTROLS
# -----------------------------------------------------------------------------
# Recommended minimum configuration:
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

acl SSL_ports port 443
acl Safe_ports port 80		# http
acl Safe_ports port 21		# 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 CONNECT method CONNECT
#
# Recommended minimum Access Permission configuration:
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager
# Deny requests to certain unsafe ports
http_access deny !Safe_ports
# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports
#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
# acl Donwloads
acl downloads urlpath_regex	-i "/etc/squid3/regras/downloads"
# acl IPs Liberados
acl ips_liberados src		"/etc/squid3/regras/ips-liberados"
# acl Sites Bloqueados
acl sites_bloqueados url_regex	-i "/etc/squid3/regras/sites-bloqueados"
# acl Sites Liberados
acl sites_liberados url_regex	-i "/etc/squid3/regras/sites-liberados"
# acl Sites Proibidos (Sexo)
acl sites_proibidos url_regex	-i "/etc/squid3/regras/sites-proibidos"

# Acesso Allow para IPs Liberados
http_access allow ips_liberados
# Acesso Allow para Sites Liberados
http_access allow sites_liberados
# Acesso Deny para Sites Proibidos (Sexo)
http_access deny sites_proibidos
# Acesso Deny para Sites Bloqueados
http_access deny sites_bloqueados

http_access allow all
http_access allow localhost
#
# And finally deny all other access to this proxy
http_access deny all

# NETWORK OPTIONS
# -----------------------------------------------------------------------------
#http_port 3128
http_port 3128 transparent
hosts_file /etc/hosts
#
# OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
# -----------------------------------------------------------------------------
hierarchy_stoplist cgi-bin ?
#
# MEMORY CACHE OPTIONS
# -----------------------------------------------------------------------------
cache_mem 256 MB
maximum_object_size_in_memory 512 KB
#
# DISK CACHE OPTIONS
# -----------------------------------------------------------------------------
# Uncomment and adjust the following to add a disk cache directory.
cache_dir aufs /var/spool/squid3 2048 16 256
minimum_object_size 0 KB
maximum_object_size 4096 KB
fqdncache_size 1024
#
# LOGFILE OPTIONS
# -----------------------------------------------------------------------------
access_log /var/log/squid3/access.log squid
cache_store_log /var/log/squid3/store.log
logfile_rotate 10
# pid_filename /var/run/squid3.pid
# log_fqdn off
#
# OPTIONS FOR TROUBLESHOOTING
# -----------------------------------------------------------------------------
cache_log /var/log/squid3/cache.log
coredump_dir /var/spool/squid3
#
# OPTIONS FOR TUNING THE CACHE
# -----------------------------------------------------------------------------
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
#
# ADMINISTRATIVE PARAMETERS
# -----------------------------------------------------------------------------
visible_hostname squid
#

