Enviado em 22/10/2014 - 10:19h
Bom dia
Estou com um problema na minha net, a Internet da empresa está bem lenta, gostaria que vocês analisassem o meu squid pra ver se ta tudo certo:
Minha do servidor:
Memoria: 2 gb
Intel(R) Xeon(R) CPU E5504 @ 2.00GHz
Internet Fibra 4 mb
Versão do Linux: Debian 7 Wheezy
Kernel: 3.2.0-4-686-pae
Meu squid: Squid 3.3.3
http_port 3128 transparent
cache_dir ufs /var/spool/squid 9500 16 256
cache_mem 694 KB
maximum_object_size_in_memory 2048 KB
access_log /var/log/access.log squid
cache_log /var/log/cache.log
#cache_store_log /var/log/store.log
#pid_filename /var/log/squid3.pid
mime_table /etc/squid/mime.conf
cache_mgr xxxxx@xxxxx.com.br
memory_pools off
diskd_program /usr/lib/squid/diskd
unlinkd_program /usr/lib/squid/unlinkd
quick_abort_max 16 KB
quick_abort_pct 95
quick_abort_min 16 KB
request_header_max_size 20 KB
reply_header_max_size 20 KB
request_body_max_size 0 KB
cache_effective_user squid # Usuário que vai rodar o processo do Squid
error_directory /usr/share/squid/errors/pt-br/ #Direcionando as páginas para o idioma Português
#acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
#acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
#acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
#acl localnet src fc00::/7 # RFC 4193 local private network range
#acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
#acl manager proto cache_object
#acl localhost src 127.0.0.1/32 ::1
#acl to_localhost dst 127.0.0.0/8 ::1
acl redelocal src 192.168.1.0/24 ::1
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 acesso_ftp port 21
acl admin arp "/etc/squid/lista/admin.txt"
acl sites dstdomain "/etc/squid/lista/sites.txt"
acl users_sites_restritos arp "/etc/squid/lista/ips_sites_espec.txt"
acl sites_liberado_restritos dstdomain "/etc/squid/lista/sites_restritos.txt"
http_access deny sites !admin
http_access deny users_sites_restritos !admin !sites_liberado_restritos
http_access deny users_sites_restritos !sites_liberado_restritos
acl internet arp "/etc/squid/lista/internet.txt"
http_access deny !internet !admin
http_access allow localhost manager
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#http_access allow localnet
http_access allow redelocal
http_access allow localhost
http_access deny all
coredump_dir /var/cache/squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
Obrigado.
Estou com um problema na minha net, a Internet da empresa está bem lenta, gostaria que vocês analisassem o meu squid pra ver se ta tudo certo:
Minha do servidor:
Memoria: 2 gb
Intel(R) Xeon(R) CPU E5504 @ 2.00GHz
Internet Fibra 4 mb
Versão do Linux: Debian 7 Wheezy
Kernel: 3.2.0-4-686-pae
Meu squid: Squid 3.3.3
http_port 3128 transparent
cache_dir ufs /var/spool/squid 9500 16 256
cache_mem 694 KB
maximum_object_size_in_memory 2048 KB
access_log /var/log/access.log squid
cache_log /var/log/cache.log
#cache_store_log /var/log/store.log
#pid_filename /var/log/squid3.pid
mime_table /etc/squid/mime.conf
cache_mgr xxxxx@xxxxx.com.br
memory_pools off
diskd_program /usr/lib/squid/diskd
unlinkd_program /usr/lib/squid/unlinkd
quick_abort_max 16 KB
quick_abort_pct 95
quick_abort_min 16 KB
request_header_max_size 20 KB
reply_header_max_size 20 KB
request_body_max_size 0 KB
cache_effective_user squid # Usuário que vai rodar o processo do Squid
error_directory /usr/share/squid/errors/pt-br/ #Direcionando as páginas para o idioma Português
#acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
#acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
#acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
#acl localnet src fc00::/7 # RFC 4193 local private network range
#acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
#acl manager proto cache_object
#acl localhost src 127.0.0.1/32 ::1
#acl to_localhost dst 127.0.0.0/8 ::1
acl redelocal src 192.168.1.0/24 ::1
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 acesso_ftp port 21
acl admin arp "/etc/squid/lista/admin.txt"
acl sites dstdomain "/etc/squid/lista/sites.txt"
acl users_sites_restritos arp "/etc/squid/lista/ips_sites_espec.txt"
acl sites_liberado_restritos dstdomain "/etc/squid/lista/sites_restritos.txt"
http_access deny sites !admin
http_access deny users_sites_restritos !admin !sites_liberado_restritos
http_access deny users_sites_restritos !sites_liberado_restritos
acl internet arp "/etc/squid/lista/internet.txt"
http_access deny !internet !admin
http_access allow localhost manager
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#http_access allow localnet
http_access allow redelocal
http_access allow localhost
http_access deny all
coredump_dir /var/cache/squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
Obrigado.