Rodolfo_Machado
(usa Debian)
Enviado em 26/02/2013 - 14:10h
Alguns resultado de tail -f /var/log/squid/access.log | grep 192.168.2.2 para tentativa de acessar o Yahoo, sendo 192.168.2.2 um IP sem restrição de acesso.
1361897372.150 62 192.168.2.2 TCP_MISS/200 10687 GET
http://l1.yimg.com/dh/ap/default/130226/0226_papa_nomea____o_tab.jpg - DIRECT/200.152.174.74 image/jpeg
1361897382.428 341 192.168.2.2 TCP_MISS/200 13138 GET
http://l1.yimg.com/dh/ap/default/130225/fantastico.jpg - DIRECT/200.152.174.73 image/jpeg
1361897392.195 110 192.168.2.2 TCP_MISS/200 21390 GET
http://l1.yimg.com/dh/ap/default/130226/torcidacorinthians_392_maurohoritaagifae.jpg - DIRECT/200.152.174.73 image/jpeg
1361897402.251 152 192.168.2.2 TCP_MISS/200 12178 GET
http://l1.yimg.com/dh/ap/default/130225/brigaMEDIO.jpg - DIRECT/200.152.174.74 image/jpeg
1361897465.951 410 192.168.2.2 TCP_MISS/200 576 GET
http://tr.adinterax.com/tr/yahoo_latam%2Chome%2FBR_Ford%2F530027551_022613_FPAD_Ford_BR%2CC%3DFORD_5... - DIRECT/98.139.200.238 image/gif
1361897469.677 0 192.168.2.2 TCP_HIT/200 3123 GET
http://ads.yldmgrimg.net/apex/template/a_081610.js - NONE/- text/javascript
1361897614.739 175 192.168.2.2 TCP_MISS/200 11677 GET
http://ads.yldmgrimg.net/apex/mediastore/bffa9c71-a10b-417e-93f3-d100e3de7153 - DIRECT/201.48.154.9 image/jpeg
1361897614.864 58 192.168.2.2 TCP_MISS/200 474 GET
http://b.scorecardresearch.com/p? - DIRECT/201.48.154.25 image/gif
1361897615.013 452 192.168.2.2 TCP_MISS/302 853 GET
http://ia.nspmotion.com/tracking/? - DIRECT/65.99.198.181 text/html
Caro phrich,segui sua sugestão, alterei o squid.conf:
http_port 3128 transparent
visible_hostname Servidor-UPA-Debian-Linux
cache_mem 32 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 1024 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 redelocal src 192.168.2.0/24
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 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # SWAT
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
#http_access allow redelocal
acl yahoo dstdomain .yahoo.com .yimg.com .adinterax.com .yldmgrimg.net .scorecardresearch.com .nspmotion.com .beap.bc.yahoo.com
acl permitidos src 192.168.2.1-192.168.2.6
acl permitidos2 src 192.168.2.7-192.168.2.10
acl permitidos3 dstdomain "/etc/squid/permitidos2"
acl sites dstdomain "/etc/squid/permitidos"
http_access deny yahoo !permitidos
http_access allow permitidos
http_access allow permitidos2 permitidos3
http_access allow sites
http_access deny all
Mas não surtiu efeito algum,continua demorando para abrir e, quando abre, abre tudo desconfigurado.