[KLUG Members] Squid

agencies_ad1 at sancharnet.in agencies_ad1 at sancharnet.in
Tue Apr 12 02:20:33 EDT 2005



Hello

I am configuring Squid with simple authenticaion. I have setup three users .
when one user  is using cache same login should fail to use cachel. I have
tried hard to solve this problem but of no use. I am posting relevant portion
of squid.conf for help.

http_port 192.168.0.15:4480
http_port 127.0.0.1:4480
dns_nameservers 192.168.0.15
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
auth_param basic children 5
auth_param basic realm squid proxy server
auth_param basic credentialsttl 2 hour
authenticate_ttl 1 hours
authenticate_ip_ttl 400 second
cache_mem 64 MB
cache_dir ufs /var/spool/squid 128 16 256
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
icp_port 0
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl localnet src 192.168.0.0/255.255.255.0
acl SSL_ports 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 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 631 # cups
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # SWAT
acl Safe_ports port 631 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl name proxy_auth REQUIRED
acl max max_user_ip -s 1
acl yahoo dstdomain pager.yahoo.com
acl yahoo dstdomain shttp.msg.yahoo.com
acl yahoo dstdomain update.messenger.yahoo.com
acl yahoo dstdomain update.pager.yahoo.com
http_access deny yahoo
http_access allow localnet
cache_mgr komal
cachemgr_passwd komal all
http_access allow manager localhost localnet
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
icp_access deny all

Regards,

Komal

----------------------------------------------------------------
This message was sent using NWebmail, BSNL's Webmail Program



More information about the Members mailing list