Hi,
I tried to use ncsa program for user authentication. But Its not working in my squid.
Can any one help out in this.
I want to set user base log in for internet access and also want user base report.
As I am new to linux and squid firewall Please help
Hi ,
I completely agree with hysteria . Please provide us the steps that you are following along with the error_logs so that we may be able to assist you further.
I'm done with that. now there is new problem I'm facing is when i remove proxy settings from ie. it won't allow to view the web page. but previous to this i was able to view the page even i didn't set the proxy for ie.
can we do the same for this userbase authu.?like if i open ie it has to ask username add pass. each time whether i put a proxy or not.
If you were able to view a page previously with no proxy, and now that you are no longer using a proxy you are no longer able to view that page, then this would imply the problem is not with your proxy server. That is, unless you are using a transparent proxy and I suspect you're not.
I'm not sure what you are trying to accomplish. If you are wanting to force the use of a proxy, then doing a transparent set up is the way to go, or alternately forcing the proxy settings and then making sure your users can't change them.
Please try to be specific in describing your problem. Exact error messages, log information, etc. You might get more people who would in turn respond.
I Already made transparent proxy. So previously i was able to view the page with proxy or without proxy.
But now when i implemented ncsa_user base login it didn't filter the site as per acl i created. It opens all the sites to all the users.
Steps i taken to create a firewall as per the link provided in this site only.
HOWTO_:_Ch32_:_Controlling_Web_Access_with_Squid#M aking_Your_Squid_Server_Transparent_To_Users
Can you people help me out in this?
I've never implemented a transparent proxy, but apparently you can't do authentication with it. So if you want to do authentication, don't use a transparent proxy. I'd suggest you read the following on how to properly set up your squid configuration.
http://www.cyberciti.biz/tips/linux-...ntication.html
Hi,
now if my user browse the ie it will load the first page and ask for username and password but if he cancle it..he still able to view further pages or surf the net.
without username and password they are able to surft the net. only things is that user name and password window appers continously and they cancle it.
is there any way that if the user didn't put the username and password he won't be able to surf the net.
please help
You need to make sure you have the following lines.
acl AuthorizedUsers proxy_auth REQUIRED
http_access allow AuthorizedUsers
http_access deny all
Emphasis in bold. You also need to look through your squid.conf file and anywhere you see "http_access allow" is suspect. Try commenting out those. You should have "http_access allow localhost" but that is all.
But still I'm facing same problem
below is my squid config
#auth_param basic program /usr/libexec/ncsa_auth /usr/etc/passwd
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
#Recommended minimum configuration:
acl ncsa_users proxy_auth REQUIRED
acl AuthorizedUsers proxy_auth REQUIRED
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 to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
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 CONNECT method CONNECT
#Default:
#http_access deny all
#
#Recommended minimum configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
#
# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost
#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
acl HR src "/etc/squid/HRComputers"
acl HRBlockedsites url_regex -i "/etc/squid/HRSites"
http_access allow HR !HRBlockedsites
acl users src "/etc/squid/usersComputers"
acl usersBlockedsites url_regex -i "/etc/squid/usersSites"
http_access allow users !usersBlockedsites
acl servers src "/etc/squid/serverIP"
acl serversBlockedsites url_regex -i "/etc/squid/serverSites"
http_access allow servers !serversBlockedsites
acl porn url_regex -i "/etc/squid/pornDomains"
http_access deny all porn
acl operation src "/etc/squid/operationComputers"
acl operationBlockedsites url_regex -i "/etc/squid/operationSites"
http_access allow operation !operationBlockedsites
http_access deny all
http_access allow ncsa_users !users !servers !porn !HR !operation
http_access allow AuthorizedUsers
http_reply_access allow all
log_access allow ncsa_users
# Example rule allowing access from your local networks. Adapt
# to list your (internal) IP networks from where browsing should
# be allowed
#acl our_networks src 192.168.1.0/24 192.168.2.0/24
#http_access allow our_networks
# And finally deny all other access to this proxy
http_access allow localhost
http_access deny all
#Default:
# icp_access deny all
#
#Allow ICP queries from everyone
icp_access allow all
# Squid normally listens to port 3128
http_port 3128 transparent
#Default:
# dead_peer_timeout 10 seconds
# TAG: hierarchy_stoplist
# A list of words which, if found in a URL, cause the object to
# be handled directly by this cache. In other words, use this
# to not query neighbor caches for certain objects. You may
# list this option multiple times. Note: never_direct overrides
# this option.
#We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?
#Default:
# none
# TAG: access_log
# These files log client request activities. Has a line every HTTP or
# ICP request. The format is:
# access_log <filepath> [<logformat name> [acl acl ...]]
# access_log none [acl acl ...]]
#
# Will log to the specified file using the specified format (which
# must be defined in a logformat directive) those entries which match
# ALL the acl's specified (which must be defined in acl clauses).
# If no acl is specified, all requests will be logged to this file.
#
# To disable logging of a request use the filepath "none", in which case
# a logformat name should not be specified.
#
# To log the request via syslog specify a filepath of "syslog":
#
# access_log syslog[:facility.priority] [format [acl1 [acl2 ....]]]
# where facility could be any of:
# authpriv, daemon, local0 .. local7 or user.
#
# And priority could be any of:
# err, warning, notice, info, debug.
#
# Note: 2.6.STABLE14 and earlier only supports a slightly different
# and undocumented format with all uppercase LOG_FACILITY|LOG_PRIORITY
access_log /var/log/squid/access.log squid
# OPTIONS FOR TUNING THE CACHE
# -----------------------------------------------------------------------------
# TAG: cache
# A list of ACL elements which, if matched, cause the request to
# not be satisfied from the cache and the reply to not be cached.
# In other words, use this to force certain objects to never be cached.
#
# You must use the word 'DENY' to indicate the ACL names which should
# NOT be cached.
#
# Default is to allow all to be cached
#We recommend you to use the following two lines.
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
#Suggested default:
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#Default:
# cache_vary on
# TAG: broken_vary_encoding
# Many servers have broken support for on-the-fly Content-Encoding,
# returning the same ETag on both plain and gzip:ed variants.
# Vary replies matching this access list will have the cache split
# on the Accept-Encoding header of the request and not trusting the
# ETag to be unique.
#
# Apache mod_gzip and mod_deflate known to be broken so don't trust
# Apache to signal ETag correctly on such responses
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
Bookmarks