flaviog
(usa CentOS)
Enviado em 18/10/2014 - 20:48h
Ola pessoal.
Estou com problema para liberar um determinado ip para nao pedir senha no proxy squid.
Ja encontrei varias dicas aqui mesmo e quase todas mostram que a forma de fazer é exatamente a que fiz. Porem sempre esta pedindo senha.
Vou postar meu squid.conf. Se alguem tive alguma ideia que possa ajudar. "Detalhe" não quero liberar pelo iptables.
==========================
squid.conf
==========================
####### Usuario e grupo que rodara o squid
cache_effective_user squid
cache_effective_group squid
half_closed_clients off
####### Nome do servidor e porta
visible_hostname internet
http_port 127.0.0.1:8080
hierarchy_stoplist cgi-bin ?
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
############ Estações liberadas por ip para não pedir proxy ###########
#acl ipliberados src "/etc/squid/customize/ipliberados"
acl ipliberados src 172.16.1.2
http_access allow ipliberados
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
cache_mem 640 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 256 MB
minimum_object_size 0 KB
memory_replacement_policy heap GDSF
cache_swap_low 90
cache_swap_high 95
cache_replacement_policy heap LFUDA
diskd_program /usr/lib64/squid/diskd
cache_dir diskd /var/spool/squid/01 22528 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid/02 22528 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid/03 22528 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid/04 22528 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid/05 22528 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid/06 22528 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid/07 22528 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid/08 22528 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid/09 22528 16 256 Q1=64 Q2=72
cache_dir diskd /var/spool/squid/10 22528 16 256 Q1=64 Q2=72
cache_access_log stdio:/var/log/squid/access.log
# Leave coredumps in the first cache dir
coredump_dir /var/log/squid
#######################################################################
####### As Regras pessoais podem ser colocadas abaixo #################
#######################################################################
################# Declarando a rede interna ###########################
acl redelocal src 172.16.0.0/16
######## Dominio bloqueados independente de ser administrdor ##########
acl bloqueiogeral url_regex -i "/etc/squid/customize/bloqueiogeral"
http_access deny bloqueiogeral
############## Dominio liberados para não pedir proxy #################
acl domainliberados dstdomain "/etc/squid/customize/domainliberados"
http_access allow domainliberados
###### autenticação de usuarios
auth_param basic realm Entre com seu Login e Senha
auth_param basic children 15
auth_param basic credentialsttl 2 hours
auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/usuarios
acl autenticados proxy_auth REQUIRED
http_access allow autenticados
# from where browsing should be allowed
http_access allow redelocal
http_access allow localhost
# Add any of your own refresh_pattern entries above these.
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
# And finally deny all other access to this proxy
http_access deny all