LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-27-2010, 12:53 AM   #1
vector4tfc
LQ Newbie
 
Registered: Sep 2007
Posts: 6

Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bug squid+ncsa_auth (delete users) stomach Linux - Software 0 01-14-2006 02:17 PM
bug squid+ncsa_auth stomach Linux - Software 1 01-14-2006 05:14 AM
Squid Authentication problem using ncsa_auth alexjordan02 Linux - Software 0 01-28-2004 09:53 PM
Squid NCSA_Auth problem thijsvb Linux - Security 1 10-29-2003 07:38 AM
Squid-ncsa_auth jai_ts Linux - Software 1 10-02-2003 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration