Ver Resposta Única
Antigo 05-05-2008, 21:32   #1 (permalink)
cleciorodrigo
 
Avatar de cleciorodrigo
 
Registrado em: May 2005
Localização: São Paulo
Idade: 27
Mensagens: 923
Agradeceu: 12
Agradecido 188 vez(es) em 126 Posts
Reputação: 152 cleciorodrigo cleciorodrigo cleciorodrigo
Enviar mensagem via MSN para cleciorodrigo
Padrão Servidor Proxy Squid lento

Amigos estou tendo um grande problema aqui estou a configurar um servidor de proxy em Corel 2 Duo, com 2Gb de Ram e HD Sata2 de 150Gb, porem o proxy esta muito lento, segue abaixo o meu squid.conf se alguem tiver uma dica fico muito grato

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 # http
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

http_access allow manager localhost
http_access deny manager

# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports

acl rede src 200.153.55.0/25
http_access allow rede

http_access allow localhost
http_access deny all
icp_access allow all

# Squid normally listens to port 3128
http_port 8080 transparent

#We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

cache_mem 512 MB

maximum_object_size_in_memory 32 KB

cache_dir ufs /var/spool/squid 20000 32 256

minimum_object_size 0 KB

maximum_object_size 64 KB

cache_swap_low 90
cache_swap_high 95

access_log /var/log/squid/access.log squid

pid_filename /var/run/squid.pid

ftp_user suporte@velbras.com.br
ftp_passive on

#We recommend you to use the following two lines.
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY

#Suggested default:
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

# Apache to signal ETag correctly on such responses
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache

ie_refresh on

#Default:
cache_effective_user squid

visible_hostname proxy.velbras.com.br

unique_hostname proxy.velbras.com.br

icon_directory /usr/share/squid/icons

error_directory /usr/share/squid/errors/Portuguese

dns_nameservers 189.20.243.27 201.63.34.130

append_domain .velbras.com.br

coredump_dir /var/spool/squid

Abraços

Clecio
cleciorodrigo está offline   Responder com Quote