bwilding
(usa Fedora)
Enviado em 25/04/2011 - 18:02h
Deu certo!!!
Era o DNS a causa do problema! Resolvi inserindo estas linhas:
dns_nameservers 208.67.222.222 DNS do OPENDNS
dns_nameservers 208.67.220.220 DNS do OPENDNS
Galera estou usando um linux 2.6.15-1 FC5
Squid 2.5
Segue um squid.conf funcionando legal:
http_port 3128
visible_hostname proxy
dns_nameservers 208.67.222.222 #usei ao ver que o squidclient só funcionava com o ip no lugar do nome do site
dns_nameservers 208.67.220.220 #usei ao ver que o squidclient só funcionava com o ip no lugar do nome do site
cache_mem 128 mb
cache_dir ufs /var/spool/squid/ 500 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
cache_effective_user squid
cache_effective_group squid
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
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 to_localhost dst 127.0.0.0/8
acl redelocal src 192.168.0.0/255.255.255.0
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535 280 488 591 777 3128
acl CONNECT method CONNECT
acl bloqueiodesites url_regex -i "/etc/squid/bloqueios/sitesbloqueados.txt"
acl desbloqueiodesites url_regex -i "/etc/squid/bloqueios/sitesdesbloqueados.txt"
acl bloqueiodeextensoes urlpath_regex -i "/etc/squid/bloqueios/extensoes.txt"
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny bloqueiodesites !desbloqueiodesites
http_access allow bloqueiodeextensoes
http_access allow localhost
http_access allow redelocal
http_access deny all
http_reply_access allow all
icp_access allow all
coredump_dir /var/spool/squid
Agradecido pela ajuda de todo mundo aê!