marceloviana
(usa CentOS)
Enviado em 06/09/2012 - 19:00h
Pessoal, a todos, obrigado pela ajuda: johnnyb, cristianovicosa, andrecanhadas e para os demais se eu estiver esquecendo.
O squid está rodando fino de mais! Graças a Deus.
Segue a contribuição de todos vocês:
################### Proxy ##############
http_port 3128 transparent
visible_hostname 254-proxy
error_directory /usr/share/squid/errors/Portuguese
access_log /var/log/squid/access_infsite.log
##################### Config Cache: #########
cache_mem 2048 MB
cache_swap_low 75
cache_swap_high 90
maximum_object_size 1 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 128 KB
#ipcache_size 3072
ipcache_low 90
ipcache_high 93
## não fazer cache de páginas cgi-bin:
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_dir ufs /home/cache_squid 2048 16 256
##################### extras #############
pipeline_prefetch on
ignore_expect_100 on
##################### Safe_ports: #########
acl SSL_ports port 443 563
acl Safe_ports port 21 80 443 587 995 563 70 210 280 488 59 777 8080 389 901 1025-65535
acl purge method PURGE
acl CONNECT method CONNECT
###################### declarações ########
acl all src 0.0.0.0/0.0.0.0
acl rede0 src "/etc/squid/config/rede0"
acl rede21 src "/etc/squid/config/rede21"
acl social_clientes src "/etc/squid/config/social_clientes"
acl social_url url_regex -i "/etc/squid/config/social_url"
##################### DNS #################
dns_nameservers 10.26.20.250
dns_nameservers 8.8.8.8
###################### delay_pools #########
delay_pools 3
delay_class 1 1
delay_parameters 1 9/9
delay_access 1 allow social_url social_clientes
delay_access 1 deny all
delay_class 2 2
delay_parameters 2 -1/-1 110000/110000
delay_access 2 allow rede0
delay_access 2 deny all
delay_class 3 2
delay_parameters 3 -1/-1 210000/210000
delay_access 3 allow rede21
delay_access 3 deny all
###################### liberar ou negar acesso
http_access allow rede0
http_access allow rede21
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow social_clientes
http_access deny all
## É o Senhor que mostra os caminhos.