marduck
(usa KUbuntu)
Enviado em 12/10/2009 - 22:48h
#Inicio
http_port 192.168.1.254:3129 transparent
visible_hostname proxyspeedy2
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache_mem 48 MB
#Otimização do sistema
maximum_object_size 1024 MB
minimum_object_size 0 KB
cache_swap_low 50
cache_swap_high 90
cache_access_log /var/log/squid/access.log
# Setor NRDES & NTE Linux Educacional 3.0
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm
#end
# ACLs normais
acl all src 192.168.1.0/255.255.255.0
delay_pools 1
delay_class 1 2
delay_parameters 1 114688/114688 32768/32768
delay_access 1 allow all
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl SSL_ports port 873
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443 563
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl Safe_ports port 631
acl Safe_ports port 873
acl Safe_ports port 901
acl purge method PURGE
acl CONNECT method CONNECT
no_cache deny QUERY
# ACLs Crede 1
acl Diretoria proxy_auth "/etc/squid/users/aluno.acl"
acl Diretoria proxy_auth "/etc/squid/users/professor.acl"
acl Diretoria proxy_auth "/etc/squid/users/diretoria.acl"
acl administracao proxy_auth "/etc/squid/users/administracao.acl"
acl producao proxy_auth "/etc/squid/users/producao.acl"
acl castigo proxy_auth "/etc/squid/users/castigo.acl"
acl PornoURLs url_regex "/etc/squid/users/
[*****].acl"
acl ProducaoURLs url_regex "/etc/squid/users/producaoURLs.acl"
acl AdministracaoURLs url_regex "/etc/squid/users/administracaoURLs.acl"
acl almoco time MTWHF 12:00-14:00
acl executaveis url_regex -i "/etc/squid/users/executaveis.acl"
acl castigo_ip src "/etc/squid/users/castigo_ip.acl"
#Aplicação das ACL's
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow purge localhost
http_access deny purge
http_access allow localhost
http_access deny administracao PornoURLs
http_access deny producao PornoURLs
http_access deny castigo PornoURLs
http_access deny Diretoria PornoURLs
http_access deny administracao AdministracaoURLs !almoco
http_access deny producao ProducaoURLs !almoco
http_access deny castigo AdministracaoURLs
http_access deny administracao executaveis
http_access deny producao executaveis
http_access allow Diretoria
http_access allow producao
http_access allow aluno
http_access allow professor
http_access allow administracao
http_access allow castigo
http_access deny all
http_reply_access allow all