Results 1 to 3 of 3

Thread: Squid configuration, allow blocked sites only for 2 users

  1. #1
    Join Date
    Nov 2010
    Beans
    15

    Squid configuration, allow blocked sites only for 2 users

    My Squid is working. But I do not know how to unblock a proxy for two users on my network. My configuration
    Code:
    acl work src 192.168.16.0/24
    acl sites dstdomain "/etc/squid/sites.acl"
    acl files urlpath_regex "/etc/squid/files.acl"
    acl boss src 192.168.16.12
    acl it_user src 192.168.16.5
    http_access deny files
    http_access deny sites
    http_access allow files it_user
    http_access allow files boss
    http_access allow sites it_user
    http_access allow sites boss
    http_access allow work
    How to enable blocked sites and files for boss and it_user?

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    11,371
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Squid configuration, allow blocked sites only for 2 users

    Remove the "files" and "sites" from the "boss" and "it_user" rules and just use:

    Code:
    acl work src 192.168.16.0/24
    acl sites dstdomain "/etc/squid/sites.acl"
    acl files urlpath_regex "/etc/squid/files.acl"
    acl boss src 192.168.16.12
    acl it_user src 192.168.16.5
    http_access allow it_user
    http_access allow boss
    http_access deny files
    http_access deny sites
    http_access allow work
    Note that I've put the "allow" rules first. In general, you want to put all the whitelist rules above the blacklist ones. Otherwise the blacklist rules will take precedence.

  3. #3
    Join Date
    Nov 2010
    Beans
    15

    Re: Squid configuration, allow blocked sites only for 2 users

    Everything is working now, thank you.

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
  •