calaff2
(usa CentOS)
Enviado em 29/12/2010 - 10:23h
Galera meu squid não bloqueia nada segue o squid.conf
OBS: no caso bloqueia tudo e so libera a pagina necessaria
#Script criado por Idalmo Junior
#Data: 03/11/2008
http_port 192.168.2.1:3128 transparent
visible_hostname shop.barra
dns_nameservers 200.165.132.154
dns_nameservers 200.149.55.142
error_directory /usr/share/squid/errors/Portuguese/
cache_mem 64 MB
#maximum_object_size_in_memory 64 KB
maximum_object_size 4096 KB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 1000 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
emulate_httpd_log on
cache_mgr suporte@layersete.com
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 4550 6550 6061 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
acl ip_liberado src "/etc/squid/regras/ip_liberado.txt"
http_access allow ip_liberado
acl liberado url_regex -i "/etc/squid/regras/liberado.txt"
http_access allow liberado
acl liberados dstdom_regex -i "/etc/squid/regras/liberados.txt"
http_access deny !liberados
acl redelocal src 192.168.2.0/255.255.255.0
http_access allow localhost
http_access allow redelocal
http_access deny all
################### LOGS#############
192.168.2.99 - - [29/Dec/2010:07:19:56 -0300] "GET
http://www.missaotim.com.br/imagens/bol3.jpg HTTP/1.1" 200 856 TCP_MISS:DIRECT
192.168.2.99 - - [29/Dec/2010:07:19:56 -0300] "GET
http://www.google-analytics.com/__utm.gif? HTTP/1.1" 200 473 TCP_MISS:DIRECT
192.168.2.99 - - [29/Dec/2010:07:19:57 -0300] "GET
http://www.missaotim.com.br/imagens/fundoTopo2.png HTTP/1.1" 200 146971 TCP_MISS:DIRECT
192.168.2.99 - - [29/Dec/2010:07:19:59 -0300] "GET
http://www.missaotim.com.br/imagens/fundoContent2.png HTTP/1.1" 200 397356 TCP_MISS:DIRECT
192.168.2.99 - - [29/Dec/2010:07:20:33 -0300] "GET
http://www.missaotim.com.br/Mural/mural.aspx HTTP/1.1" 200 4350 TCP_MISS:DIRECT
192.168.2.99 - - [29/Dec/2010:07:20:34 -0300] "POST
http://www.missaotim.com.br/Vendas/cadastro.aspx HTTP/1.1" 200 58711 TCP_MISS:DIRECT
192.168.2.99 - - [29/Dec/2010:07:20:34 -0300] "GET
http://www.missaotim.com.br/imagens/alerta.png HTTP/1.1" 200 116719 TCP_MISS:DIRECT
192.168.2.99 - - [29/Dec/2010:07:20:34 -0300] "GET
http://www.google-analytics.com/__utm.gif? HTTP/1.1" 200 473 TCP_MISS:DIRECT
Alguem poderia dar uma ajuda ae fico grato.