Re: squid
Olá Josemar,
Desculpe a demora em enviar o arquivo. Passei o fim-de-semana batendo cabeça, mas não consegui resolver o meu problema.
Estou usando a versão estável do debian etch. Squid Cache: Version 2.6.STABLE5
Segue o squid.conf
http_port XXX.XXX.XXX.XXX:3128 transparent
icp_port 0
htcp_port 0
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 2048 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
minimum_object_size 8 KB
maximum_object_size_in_memory 1048 KB
ipcache_low 90
ipcache_high 95
cache_replacement_policy heap LFUDA
memory_replacement_policy heap LFUDA
cache_dir diskd /squid1 4096 64 256 Q1=64 Q2=72
cache_dir diskd /squid2 4096 64 256 Q1=64 Q2=72
access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
pid_filename /var/run/squid.pid
debug_options ALL,1
client_netmask 255.255.255.255
dns_nameservers XXX.XXX.XXX.X
hosts_file /etc/hosts
unlinkd_program /usr/lib/squid/unlinkd
request_header_max_size 512 KB
request_body_max_size 5242880 KB allow XXXX !acessohome
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
quick_abort_min 16 KB
quick_abort_max 16 KB
quick_abort_pct 95
negative_ttl 5 minutes
positive_dns_ttl 1440 minutes
negative_dns_ttl 1 minute
forward_timeout 4 minutes
connect_timeout 1 minute
peer_connect_timeout 30 seconds
read_timeout 15 minutes
request_timeout 5 minutes
persistent_request_timeout 1 minute
client_lifetime 1 day
half_closed_clients off
pconn_timeout 120 seconds
acl acessohome src "/etc/squid/acessohome"
acl blocked url_regex -i "/etc/squid/blacklist"
http_access allow blocked acessohome
http_access deny blocked
deny_info
http://www.cecomp.ufrr.br blocked
acl malware_block_list url_regex -i "/etc/squid/malware"
http_access deny malware_block_list
deny_info http://malware.hiperlinks.com.br/denied.shtml
malware_block_list
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 SSL_ports port 443
acl Safe_ports port 80 8080 # http
acl Safe_ports port 8590 # http capes
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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 CONNECT method CONNECT
acl admin arp "/etc/squid/admin.txt"
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl XXXX src XXX.XXX.XXX.X
http_access allow localhost
http_access allow XXXX
http_access deny all
http_reply_access allow XXXX
icp_access deny all
reply_header_max_size 20 KB
reply_body_max_size 157286400 allow XXXX !acessohome
cache_mgr admin
cache_effective_user proxy
cache_effective_group proxy
httpd_suppress_version_string on
visible_hostname proxy.XXXX
logfile_rotate 4
err_html_text mailto xxxx
log_icp_queries on
minimum_direct_hops 4
minimum_direct_rtt 400
always_direct allow XXXX
error_directory /usr/share/squid/errors/Portuguese
coredump_dir none
pipeline_prefetch off
ie_refresh on
Obrigado,
Marcos
Em 16/01/08,
Josemar Vieira <josemar@gmail.com> escreveu:
Em 16/01/08, Marcos Ferreira <marcaobv@gmail.com
> escreveu:
Olá Senhores!
Desde segunda-feira estou com problemas no meu squid. Sites que antes carregavam normalmente, agora não carregam de jeito nenhum. Um deles é
www.bol.com.br. Se tiro o squid do ar, o site entra normal. Mas, se o squid volta o site pára.
A página principal do uol carrega, mas não consigo acessar nenhum link da página.
Já limpei o cache, mas também não resolveu. Dei uma olhada nos logs e observei a seguinte mensagem:
TCP_DENIED/400 1200 NONE error:unsupported-request-method - NONE/- text/html
Alguém pode me dar uma sugestão do que fazer ?
Obrigado,
Marcos
qual a versão do teu squid ?
Como está teu squid.conf ?
--
Josemar Vieira
Reply to:
- References:
- squid
- From: "Marcos Ferreira" <marcaobv@gmail.com>
- Re: squid
- From: "Josemar Vieira" <josemar@gmail.com>