Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    PFSENSE, Squid + SquidGuard User based ACL´s

    Scheduled Pinned Locked Moved Cache/Proxy
    2 Posts 2 Posters 950 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      acidus
      last edited by

      Hi Guys,

      Saw a lot of documentation regarding how to setup Squid + SquidGuard, however all of them were IP Based.

      So, the question (if you can save me digging time) is:

      Is it possible to perform web filtering in pfsense against userlists acls (i.e local user with ncsa_auth + htpasswd)

      src usrs-adv {
          userlist  users-adv  #
          log users-advlogs
      }
      src usrs-std {
          userlist  users-std  #
          log users-stdlogs

      acl {
              usrs-adv {
      pass exemptions !blacklist !porn !spyware !tracker !webradio !webtv !chat !tunning all
      redirect http://localhost:8080/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientuser=%i&clientgroup=%s&targetgroup=%t&url=%u
          }

      usrs-std {
      pass exemptions !blacklist !porn !chat !dating !downloads !gamble !hacking !movies !music !spyware !tracker !warez !webradio !webtv  !tunning all
      redirect http://localhost:8080/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientuser=%i&clientgroup=%s&targetgroup=%t&url=%u
          }
      }

      If yes, or no.. I appreciate your time.
      Thanks

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        I don't think so.  Here is what you have to work with when using a squidguard ACL:

        Enter client's IP address or domain or "username" here. To separate them use space.

        Example:
        IP: 192.168.0.1 - Subnet: 192.168.0.0/24 or 192.168.1.0/255.255.255.0 - IP-Range: 192.168.1.1-192.168.1.10
        Domain: foo.bar matches foo.bar or *.foo.bar
        Username: 'user1'
        Ldap search (Ldap filter must be enabled in General Settings): ldapusersearch ldap://192.168.0.100/DC=domain,DC=com?sAMAccountName?sub?(&(sAMAccountName=%s)(memberOf=CN=it%2cCN=Users%2cDC=domain%2cDC=com))

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.