alvarotim
(usa Slackware)
Enviado em 23/11/2008 - 12:39h
Olá pessoal do VOL, estou com um problema no squid que é o seguinte, inseri a linha "auth_param basic credentialsttl 2 hours", afim de que a cada 2 horas o usuário inserisse usuário e senha novamente, mas isso não esta acontecendo, alguem sabe me dizer o que acontece. Uso o Debian 3.1 sarge, valeu.
squid.conf esta abaixo:
# porta, Nome e Cache #####
#################################################
#
http_port 3128
visible_hostname FlexNetwork
#
cache_mem 150 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 256 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
#
################################################
##### Log #####
################################################
#
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
cache_log /var/squid/logs/cache.log
cache_dir ufs /var/spool/squid 20000 16 256
#
################################################
##### ACLs #####
################################################
#
acl all src 0.0.0.0/0.0.0.0
acl redelocal src 192.168.0.0/255.255.255.0
acl bloquear_palavras url_regex -i "/etc/squid/bloqueios/bloquear_palavras"
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
#acl SSL_ports port port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
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 Safe_ports port 901 # swat
acl Safe_ports port 1025-65535 # portas altas
acl purge method PURGE
acl CONNECT method CONNECT
#
################################################
##### Direitos de Acessos #####
################################################
#
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
#
################################################
## USANDO NCSA_AUTH ##
################################################
#
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic realm Servidor Proxy da FlexNetwork. Entre com seu usuário e Senha.
auth_param basic credentialsttl 2 hours
auth_param basic children 5
#
################################################
## AUTENTICAÇÃO ##
################################################
#
acl autenticados proxy_auth REQUIRED
################################################
# CONTROLE DE BANDA #
################################################
# ACLS
acl bandabaixa src 192.168.0.3
acl bandaalta src 192.168.0.2
# Delay Pools
delay_pools 2
delay_class 1 2
delay_class 2 2
delay_access 1 allow bandabaixa
delay_access 2 allow bandaalta
delay_parameters 1 -1/-1 2000/2000
delay_parameters 2 -1/-1 -1/-1
#
http_access allow autenticados
http_access allow localhost
http_access allow redelocal
#
http_access deny all