
ivo.becker
(usa Debian)
Enviado em 02/03/2011 - 11:22h
meu squid.conf
http_port 3128 transparent
visible_hostname BECKER
dns_nameservers 208.67.222.222
dns_nameservers 208.67.220.220
cache_mem 880 MB
maximum_object_size_in_memory 128 KB
maximum_object_size 128 MB
minimum_object_size 0 KB
cache_swap_low 80
cache_swap_high 85
cache_dir ufs /var/spool/squid 64820 24 320
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
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 SSL_ports port 443 563
acl Safe_ports port 21 80 443 563 70 210 280 488 59 777 901 1025-65535
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
### CONTROLE DE DOWNLOAD DE EXTENSOES###
#acl controle url_regex -i .exe$ .mp3$ .rar$ .flv$ .zip$ .wmv$ .mpeg$ .rmvb$ .mp4$ .avi$ .mov$
acl controle src 192.168.19.0/24
acl becker src 192.168.199.0/24
delay_pools 2
delay_class 1 2
delay_parameters 1 -1/-1 16000/16000
delay_access 1 allow controle
delay_access 1 deny all
delay_class 2 2
delay_parameters 2 -1/-1 -1/-1
delay_access 2 allow becker
delay_access 2 deny all
http_access allow localhost
http_access allow controle
http_access allow becker
http_access deny all
positive_dns_ttl 5 hour