danielrcb
(usa Debian)
Enviado em 30/09/2010 - 04:06h
A e galera....estou configurando um proxy, fiz alguns pequenos teste de acessos a alguns sites que bloqueei e deu tudo certo... porém não está gravando nada em cache!! vou postar o log do squid... e o squid.conf...
valeu a galera!!!
abaixo estão os conf.
Partes do LOG DO SQUID (todas as linha do log estão assim... por isso coloquei so uma parte!
1285788552.206 296 192.168.0.10 TCP_MISS/204 374 GET
http://www.google.com.br/csi? - DIRECT/64.233.163.104 text/html
1285788552.540 614 192.168.0.10 TCP_MISS/200 2985 GET
http://www.apostilaspdf.com/ - DIRECT/74.200.85.143 text/html
1285788553.001 238 192.168.0.10 TCP_MISS/204 428 GET
http://www.google.com.br/url? - DIRECT/64.233.163.104 text/html
1285788554.154 1237 192.168.0.10 TCP_MISS/200 20262 GET
http://www.netsaber.com.br/apostilas/apostilas/252.pdf - DIRECT/75.125.128.42 application/pdf
1285788555.042 978 192.168.0.10 TCP_MISS/206 18127 GET
http://www.netsaber.com.br/apostilas/apostilas/252.pdf - DIRECT/75.125.128.42 multipart/byteranges
1285788555.262 702 192.168.0.10 TCP_MISS/206 4886 GET
http://www.netsaber.com.br/apostilas/apostilas/252.pdf - DIRECT/75.125.128.42 multipart/byteranges
1285788555.349 761 192.168.0.10 TCP_MISS/206 5577 GET
http://www.netsaber.com.br/apostilas/apostilas/252.pdf - DIRECT/75.125.128.42 multipart/byteranges
1285788555.574 221 192.168.0.10 TCP_MISS/404 924 GET
http://www.netsaber.com.br/favicon.ico - DIRECT/75.125.128.42 text/html
1285788556.199 504 192.168.0.10 TCP_MISS/206 11740 GET
http://www.netsaber.com.br/apostilas/apostilas/252.pdf - DIRECT/75.125.128.42 multipart/byteranges
1285788556.873 1176 192.168.0.10 TCP_MISS/206 44219 GET
http://www.netsaber.com.br/apostilas/apostilas/252.pdf - DIRECT/75.125.128.42 multipart/byteranges
squid.conf
http_port 3128
visible_hostname Linux
cache_mem 350 MB
maximum_object_size_in_memory 100 KB
maximum_object_size 500 MB
minimum_object_size 0 kb
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 2048 16 256
cache_access_log /var/log/squid/access.log
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
acl bloqueados dstdomain orkut.com
www.orkut.com playboy.abril.com.br
www.gamesbrasil.com.br
http_access deny bloqueados
acl redelocal src 192.168.0.0/24
http_access allow localhost
http_access allow redelocal
http_access deny all
ajuda aee pessoal!!!