manager
(usa Ubuntu)
Enviado em 01/12/2015 - 12:47h
Prezados, boa tarde!
Basicamente fiz o que me recomendaram. O Squid Cache possui Version 3.5.10. Retirei algumas ACLs, como as de QOS e o erro não apareceu mais. Contudo, preciso que ele faça autenticação via Active Directory. Quando acrescento os parâmetros: auth_param basic program /usr/local/squid/libexec/squid_ldap_auth -P -R -b "ou=Usuarios,dc=admin,dc=local" -D "cn=Administrador,cn=Users,dc=admin,dc=local" -w "senha-admin" -f sAMAccountName=%s -h 10.1.0.1,
e,
auth_param basic children 200
auth_param basic realm Proxy TESTE - Por favor informe seu usuario e senha
auth_param basic credentialsttl 1 hour
auth_param basic casesentive off
authenticate_ttl 1 hour
acl password proxy_auth REQUIRED
sobe a tela de pop up, solicitando o usuário e senha, mas não autentica e consequentemente, não navega. Olhando o log, tive o seguinte resultado:
1448957904.288 0 10.21.0.100 TCP_DENIED/407 1654 CONNECT aus4.mozilla.org:443 - HIER_NONE/- text/html
1448957964.289 0 10.21.0.100 TCP_DENIED/407 1708 CONNECT versioncheck-bg.addons.mozilla.org:443 - HIER_NONE/- text/html
1448958024.274 0 10.21.0.100 TCP_DENIED/407 1690 CONNECT blocklist.addons.mozilla.org:443 - HIER_NONE/- text/html
1448958324.007 1 10.28.0.175 TCP_DENIED/407 1639 GET
http://www.globo.com/ user-ad HIER_NONE/- text/html
1448958677.059 0 10.28.0.175 TCP_DENIED/407 1654 CONNECT aus4.mozilla.org:443 - HIER_NONE/- text/html
1448958678.108 0 10.28.0.175 TCP_DENIED/407 1666 CONNECT imagem2.caixa.gov.br:443 - HIER_NONE/- text/html
1448958693.933 0 10.28.0.175 TCP_DENIED/407 1651 GET
http://vivaolinux.com.br/ - HIER_NONE/- text/html
1448958698.055 1 10.28.0.175 TCP_DENIED/407 1651 GET
http://vivaolinux.com.br/ user-ad HIER_NONE/- text/html
1448958702.497 0 10.28.0.175 TCP_DENIED/407 1651 GET
http://vivaolinux.com.br/ user-ad HIER_NONE/- text/html
1448958773.067 1 10.28.0.175 TCP_DENIED/407 1651 GET
http://vivaolinux.com.br/ user-ad HIER_NONE/- text/html
1448958785.091 1 10.28.0.175 TCP_DENIED/407 1651 GET
http://vivaolinux.com.br/ user-ad HIER_NONE/- text/html
E este é o resultado do comando: squid -k parse:
2015/12/01 06:56:46| Startup: Initializing Authentication Schemes ...
2015/12/01 06:56:46| Startup: Initialized Authentication Scheme 'basic'
2015/12/01 06:56:46| Startup: Initialized Authentication Scheme 'digest'
2015/12/01 06:56:46| Startup: Initialized Authentication Scheme 'negotiate'
2015/12/01 06:56:46| Startup: Initialized Authentication Scheme 'ntlm'
2015/12/01 06:56:46| Startup: Initialized Authentication.
2015/12/01 06:56:46| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2015/12/01 06:56:46| Processing: auth_param basic program /usr/local/squid/libexec/squid_ldap_auth -P -R -b "ou=Usuarios,dc=admin,dc=local" -D "cn=Administrador,cn=Users,dc=admin,dc=local" -w "senha-admin" -f sAMAccountName=%s -h 10.1.0.1
2015/12/01 06:56:46| Processing: auth_param basic children 200
2015/12/01 06:56:46| Processing: auth_param basic realm Proxy TESTE - Por favor informe seu usuario e senha
2015/12/01 06:56:46| Processing: auth_param basic credentialsttl 1 hour
2015/12/01 06:56:46| Processing: auth_param basic casesentive off
2015/12/01 06:56:46| Unrecognised basic auth scheme parameter 'casesentive'
2015/12/01 06:56:46| Processing: authenticate_ttl 1 hour
2015/12/01 06:56:46| Processing: acl password proxy_auth REQUIRED
2015/12/01 06:56:46| Processing: acl all src
2015/12/01 06:56:46| Processing: acl localnet src 10.0.0.0/24 # RFC1918 possible internal network
2015/12/01 06:56:46| Processing: acl SSL_ports port 443 # RFC1918 possible internal network
2015/12/01 06:56:46| Processing: acl Safe_ports port 80 # RFC1918 possible internal network
2015/12/01 06:56:46| Processing: acl Safe_ports port 21
2015/12/01 06:56:46| Processing: acl Safe_ports port 88
2015/12/01 06:56:46| Processing: acl Safe_ports port 443 # http
2015/12/01 06:56:46| Processing: acl Safe_ports port 70 # ftp
2015/12/01 06:56:46| Processing: acl Safe_ports port 210 # https
2015/12/01 06:56:46| Processing: acl Safe_ports port 280 # gopher
2015/12/01 06:56:46| Processing: acl Safe_ports port 488 # wais
2015/12/01 06:56:46| Processing: acl Safe_ports port 591 # unregistered ports
2015/12/01 06:56:46| Processing: acl Safe_ports port 777 # http-mgmt
2015/12/01 06:56:46| Processing: acl Safe_ports port 993 # http-mgmt
2015/12/01 06:56:46| Processing: acl Safe_ports port 8080 # gss-http
2015/12/01 06:56:46| Processing: acl Safe_ports port 8888
2015/12/01 06:56:46| Processing: acl Safe_ports port 8081 # filemaker
2015/12/01 06:56:46| Processing: acl Safe_ports port 85 # multiling http
2015/12/01 06:56:46| Processing: acl Safe_ports port 8001 # http
2015/12/01 06:56:46| Processing: acl Safe_ports port 83 # intermedica
2015/12/01 06:56:46| Processing: http_access allow password
2015/12/01 06:56:46| Processing: http_access allow sites_liberados
2015/12/01 06:56:46| Processing: http_access deny all
2015/12/01 06:56:46| Processing: http_port 10.1.0.1:3128
2015/12/01 06:56:46| Processing: http_port 127.0.0.1:3128
2015/12/01 06:56:46| Processing: cache_mem 8 MB
2015/12/01 06:56:46| Processing: cache_dir diskd /var/cache/squid 20480 64 256 Q1=64 Q2=72
2015/12/01 06:56:46| Processing: maximum_object_size 50 MB
2015/12/01 06:56:46| Processing: access_log /var/log/squid/access.log squid
2015/12/01 06:56:46| Processing: cache_log /var/log/squid/cache.log
2015/12/01 06:56:46| Processing: cache_store_log none
2015/12/01 06:56:46| Processing: logfile_rotate 30
2015/12/01 06:56:46| Processing: negative_ttl 10 minute
2015/12/01 06:56:46| Processing: request_header_max_size 20 KB
2015/12/01 06:56:46| Processing: cache_effective_user squid
2015/12/01 06:56:46| Processing: cache_effective_group squid
2015/12/01 06:56:46| Processing: error_directory /usr/local/squid/share/errors/pt-br
2015/12/01 06:56:46| Processing: max_filedescriptors 4096
2015/12/01 06:56:46| Processing: coredump_dir /var/cache/squid