[squid-users] Ignore auth specific site

From: Leonardo Bacha Abrantes <leonardo_at_lbasolutions.com>
Date: Tue, 2 Oct 2012 09:42:57 -0300

Hi Guys,

I'm facing problems with one specific site which run java. The site
open a window of java requesting to enter the credentials of proxy
continuously.
How can I ignore the authentication for an specific site ?

Squid Cache: Version 3.1.10

my squid.conf:

http_port xxx.xxx.xxx.xxx:3128
append_domain .contoso.local
cache_effective_user squid
cache_mem 4 GB
cache_effective_group squid
forwarded_for off
httpd_suppress_version_string on
visible_hostname myserver.contoso.local
hierarchy_stoplist cgi-bin ?
retry_on_error on
pipeline_prefetch on

auth_param ntlm program /usr/bin/ntlm_auth
--helper-protocol=squid-2.5-ntlmssp --domain=contoso
auth_param ntlm children 25
auth_param basic program /usr/bin/ntlm_auth
--helper-protocol=squid-2.5-basic --domain=contoso
auth_param basic children 15
auth_param basic realm Para prosseguir e necessario digitar seu login de rede.
auth_param basic credentialsttl 1 hours

acl localnetwork src 192.168.10.0/25
acl AuthorizedUsers proxy_auth -i "/etc/squid/default_access.acl"
acl unlimitedBandwidth src "/etc/squid/unlimited_bandwidth"
acl localhost src 127.0.0.1

acl java browser Java/1.4 Java/1.5 Java/1.6
http_access allow java

cache_dir ufs /var/spool/squid 6144 16 256
coredump_dir /var/spool/squid
maximum_object_size_in_memory 1 MB
maximum_object_size 64 MB
minimum_object_size 0 KB

acl manager proto cache_object
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 8080 # 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 Safe_ports port 1025-65535 # unregistered ports
acl purge method PURGE
acl CONNECT method CONNECT

delay_pools 2

delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow unlimitedBandwidth localhost
delay_access 1 deny all

delay_class 2 2
delay_parameters 2 -1/-1 65536/65536
delay_access 2 allow localnetwork !unlimitedBandwidth !localhost
delay_access 2 deny all

http_reply_access allow AuthorizedUsers
logformat combined [%tl] %un %>a %rm %Ss %Hs %ru
access_log /var/log/squid/access.log squid
access_log /var/log/squid/gerencia.log combined
cache_store_log /var/log/squid/store.log

redirect_program /etc/squidGuard/bin/squidGuard -c
/usr/local/squidGuard/squidGuard.conf
redirect_children 30

http_access allow localhost unlimitedBandwidth SSL_ports
http_access allow unlimitedBandwidth
http_access allow AuthorizedUsers
http_access deny CONNECT !SSL_ports
http_access deny all

cache_swap_low 90
cache_swap_high 95

dns_nameservers 192.168.10.2 192.168.10.3
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i exe$ 0 50% 259200
refresh_pattern -i zip$ 0 50% 259200
refresh_pattern -i rar$ 0 50% 259200
refresh_pattern -i tar\.gz$ 0 50% 259200
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
request_header_access All allow all

many thanks!
Received on Tue Oct 02 2012 - 12:43:43 MDT

This archive was generated by hypermail 2.2.0 : Thu Oct 04 2012 - 12:00:03 MDT