Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Net Access User Authentication
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Net Access User Authentication

  1. #1

    Net Access User Authentication

    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

  2. #2
    Quote Originally Posted by rahul_khatavkar View Post
    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
    You should elaborate as to what you mean by not working. Have you looked in the log files, are you not getting challenged for a user name and password. Are you getting out at all, or getting an access denied page?

  3. #3
    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.

  4. #4

    Cool Thank you both of you

    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.

  5. #5
    Quote Originally Posted by rahul_khatavkar View Post
    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.

  6. #6

    Thanks

    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?

  7. #7
    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

  8. #8

    New prblem with ncsa_users auth

    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

  9. #9
    Quote Originally Posted by rahul_khatavkar View Post
    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.

  10. #10

    Unhappy Thanks for your help

    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

Similar Threads

  1. squid user authentication problem!!!!!!!!!!!!pls help
    By swapnil in forum Linux Distros
    Replies: 2
    Last Post: 06-02-2010, 04:31 PM
  2. Access denied for user: '@192.168.0.71' (Using password: NO)
    By infinite_root in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 11-20-2008, 02:10 AM
  3. NO ACCESS TO USER ACCOUNTS
    By anthrvictim in forum Windows - General Topics
    Replies: 1
    Last Post: 05-13-2005, 12:34 PM
  4. User Access to the Internet
    By stryder144 in forum Linux - Hardware, Networking & Security
    Replies: 7
    Last Post: 07-29-2004, 11:52 PM
  5. DBM User Authentication
    By infinite_root in forum Linux - General Topics
    Replies: 4
    Last Post: 11-14-2003, 05:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •