loirojones
(usa Debian)
Enviado em 20/12/2011 - 08:52h
Pessoal estou com uma bronca no meu squid..... ele está estartando "ok" "/etc/init.d/squid restart", mas quando vou no htop para vê os processos em execução, ele não aparece.... nem no top... nada............restartei ele de novo e nada ........nesse meu servidor proxy roda tbm um dhcp.... esse sim funciona que é uma beleza...
Minha distro é o Debian Squeeze...
meu squid é o 2.7
meu squid.conf é esse aqui..
############################
##CONFIGURACAO PROXY-SQUID##
############################
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 15
auth_param basic realm Servidor Proxy Squid
authenticate_ip_ttl 300 seconds
acl 6horas max_user_ip -s 12
auth_param basic casesensitive off
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
acl shoutcast rep_header X-HTTP09-First-Line ^ICY\s[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
###################
#CACHE EM MEMORIA##
###################
cache_mem 150 MB
maximum_object_size_in_memory 64 KB
memory_replacement_policy lru
shutdown_lifetime 10 seconds
http_port 3128 transparent
visible_hostname proxy-squid-saneto
error_directory /usr/share/squid/errors/Portuguese
hosts_file /etc/hosts
coredump_dir /var/spool/squid
cache_access_log /var/log/squid/access.log
###########################
#OPCOES DE CACHE EM DISCO##
###########################
cache_replacement_policy lru
cache_dir ufs /var/cache/squid 3000 16 256
store_dir_select_algorithm least-load
max_open_disk_fds 0
cache_swap_low 95
cache_swap_high 98
maximum_object_size 500000 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 32 KB
update_headers on
##########################
#ATUALIZACAO DE ANTIVIRUS#
##########################
#Cache windowsupdate
refresh_pattern windowsupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern
www.download.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern
www.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims
refresh_pattern download.windowsupdate.com/.*\.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims
refresh_pattern
www.download.windowsupdate.com/.*\.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims
#Cache atulizacao avira
refresh_pattern personal.avira-update.com/.*\.(cab|exe|dll|msi|gz) 10080 100% 43200 reload-into-ims
#Cache atualizacao symantec
refresh_pattern liveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern symantecliveupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
#Cache avast
refresh_pattern avast.com/.*\.(vpu|cab|stamp|exe) 10080 100% 43200 reload-into-ims
#DNS a ser utilizado pelo SQUID
dns_nameservers 8.8.8.8 8.8.4.4
####################
#CONTROLE DE PORTAS#
####################
acl Safe_ports port 21
acl Safe_ports port 70
acl Safe_ports port 80
acl Safe_ports port 210
acl Safe_ports port 280
acl Safe_ports port 443
acl Safe_ports port 488
acl Safe_ports port 563
acl Safe_ports port 591
acl Safe_ports port 631
acl Safe_ports port 777
acl Safe_ports port 873
acl Safe_ports port 901
acl Safe_ports port 1025-65535
http_access deny !Safe_ports
acl connect method CONNECT
acl SSL_ports port 443
acl SSL_ports port 563
acl SSL_ports port 873
http_access deny connect !SSL_ports
####################
#CONTROLE DE ACL'S##
####################
acl all src all
acl localhost src 127.0.0.1/32
acl usuarios proxy_auth REQUIRED
acl negados url_regex -i "/etc/squid/negados.txt"
acl liberados url_regex -i "/etc/squid/liberados.txt"
acl downloads urlpath_regex -i "/etc/squid/downloads.txt"
acl negados2 url_regex -i "/etc/squid/negados2.txt"
acl negados3 url_regex -i "/etc/squid/negados3.txt"
acl diretores proxy_auth "/etc/squid/diretores.txt"
acl gerentes proxy_auth "/etc/squid/gerentes.txt"
acl funcionarios proxy_auth "/etc/squid/funcionarios.txt"
acl estagiarios proxy_auth "/etc/squid/estagiarios.txt"
acl rede-exclusiva src "/etc/squid/rede-exclusiva.txt"
http_access deny !liberados !rede-exclusiva !gerentes !diretores negados
http_access deny downloads !liberados !rede-exclusiva !gerentes !diretores
http_access allow diretores
http_access allow gerentes
http_access deny negados2
http_access allow funcionarios
http_access deny negados3
http_access allow estagiarios
###################
#CONTROLE DE BANDA#
###################
delay_pools 2
# Significa que teremos dois controles de banda
# Primeiro controle
delay_class 1 2
# -1/-1 significa que nao teremos limites para a delay pool 1
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow diretores
# Segundo controle
delay_class 2 2
#################
#TABELA DE BANDA#
#################
#####################################
# Internet speed = Download speed #
# #
#256 kbps = 31,3 KB/s #
#512 kbps = 62,5 KB/s #
#1 mbps = 122,1 KB/s #
#5 mbps = 610,3 KB/s #
#10 mbps = 1220,7 KB/s #
#####################################
####################################
##Pool Gerencia converter em bytes##
####################################
# Limita a sua banda para +- 512Kbits
# delay_parameters 2 69000/69000 69000/69000
# Limita a banda da gerencia para +- 256Kbits
delay_parameters 2 33000/33000 33000/33000
# Limita a banda da gerencia para +- 64Kbits
# delay_parameters 2 3000/3000 3000/3000
# Limita a banda da gerencia para +- 128Kbits
# delay_parameters 2 16000/16000 16000/16000
# Limita a banda da gerencia para +-180Kbits
# delay_parameters 2 22500/22500 22500/22500
# Acesso Full na banda para a gerencia.
# delay_parameters 2 -1/-1 -1/-1
delay_access 2 allow gerentes
http_access allow localhost
http_access deny all
#####
#FIM#
#####