Pessoal,
meu squid.conf
http_port 3128 transparent
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_mem 1024 MB
cache_swap_low 85
cache_swap_high 95
maximum_object_size 40 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 64 KB
cache_dir ufs /usr/local/squid/cache/ 10000 128 256
access_log /usr/local/squid/logs/access.log squid
cache_log /usr/local/squid/logs/cache.log
cache_store_log /usr/local/squid/logs/store.log
dns_nameservers 208.67.222.222 208.67.220.220
#mulate_httpd_log on
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 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
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow all
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 localhost
http_access allow all
http_reply_access allow all
icp_access allow all
# ident_lookup_access deny all
cache_mgr [email protected]
cache_effective_user nobody
cache_effective_group nogroup
error_directory /usr/local/squid/share/errors/English
coredump_dir /usr/local/squid/cache
Gostaria de complementar que:
a máquina que estou usando é um xeon com 6gb de memoria e hd de 250gb.
Essa máquina é para rodar o squid, mysql e freeradius.
Gostaria de aproveitar o máximo desse hardware.
Tenho meu mkt que está ligado no switch junto ao roteador com ip 200.xxx.xxx.195 e ligado no mesmo switch o slackware 200.xxx.xxx.198. Estou usando a mesma placa de rede de link para chegar no squid.
Sempre que subo o squid eu olho os processos com ps aux e o squid não passa de 2% de cPU e 1% de memória e mesmo assim a net fica lenta d+.