Squid and ncsa_auth: authentication is being bypassed...
My server is allowing any and all access to the internet and I cannot figure out why.
I have set up the server to distribute IP's using DHCPD3. It allow addresses in the range of 192.168.46.100-192.168.46.251
Squid is set up as the proxy server to help increase bandwidth through caching. I want to use ncsa_auth to restrict access to users with username and passwords.
I thought I had it set up correctly, but authentication keeps being bypassed and access is still unrestricted.
here is the squid.conf
--- Begin
auth_param basic program /etc/webmin/squid/squid-auth.pl /etc/webmin/squid/users
auth_param basic children 5
auth_param basic realm Office Server
auth_param basic credentialsttl 5 minute
auth_param basic casesensitive off
acl all src 0/0
acl manager proto cache_object
acl localhost src 127.0.0.1/32
#acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
#acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
#acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
#acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
#acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
#upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
acl AccessControl src 192.168.46.0/24
acl ncsa_users proxy_auth REQUIRED
#icp_access allow localnet
#icp_access deny all
http_port 3128 transparent
cache_mem 256 MB
cache_dir ufs /var/spool/squid 8000 16 256
maximum_object_size 10 MB
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
http_access deny ncsa_users !ncsa_users
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow AccessControl
http_access deny all
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
cache_effective_user squid
hosts_file /etc/hosts
coredump_dir /var/spool/squid
dns_nameservers 192.168.46.1
--- End
Any help would be nice. Thanks
|