[KLUG Members] Squid
komal
agencies_ad1 at sancharnet.in
Tue Nov 23 12:44:23 EST 2004
i tried to implement ncsa authentication in squid....funny part is squid is
built for win nt......(it contains the ncsa_auth.dll file)
i confiured to point to ncsa auth moduel...and the passwd file which i
created using htpasswd....
the proxy runs without ny errors but clients can access net without any
authentication.....
plz help me correct the errors in the squid.conf
http_port 3128
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
#cache_dir ufs e:/squid/cache 20000 5 256
cache_access_log c:/squid/log/access.log
cache_log c:/squid/log/cache.log
cache_store_log none
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 lan src 192.168.0.75-192.168.0.77/255.255.255.255
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 CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access allow localhost
http_access allow lan
http_access deny all
miss_access allow all
cache_mem 32 MB
cache_dir ufs e:/squid/cache 10000 3 256
cache_store_log none
half_closed_clients off
maximum_object_size 1024 KB
#authentication using ncsa
authenticate_program c:/squid/ncsa_auth.dll c:/squid/etc/passwd
authenticate_ttl 900
authenticate_ip_ttl 60
acl lan1 proxy_auth REQUIRED
http_access allow lan lan1
http_access deny all
Thanks
Komal
More information about the Members
mailing list