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

    Squidguard Web Filter Issues

    pfSense Packages
    3
    44
    40.3k
    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.
    • N
      Nachtfalke
      last edited by

      Hi,

      perhaps this will help you a little bit:
      http://diskatel.narod.ru/sgquick.htm

      Perhaps you should try filtering at first with one simple website which is using http (80) befor using such a long target list.

      I am shot on time at the moment. I will post some screens of my configuration later - if you like.
      But perhaps the website above will help you.

      1 Reply Last reply Reply Quote 0
      • C
        coachs88
        last edited by

        Thank you for the link, though I can't really use it. I must be running a different version from the tutorial as my interface does not have the same options.

        "You are merely a better target in the light."

        1 Reply Last reply Reply Quote 0
        • N
          Nachtfalke
          last edited by

          Just the "tabs" were renamed:
          General -> General
          default -> common acl
          acl -> groups acl
          destinations -> target categories

          Ok, what I want to realize and what I did:
          I have different VLANs/subnet. All VLANs should have full internet access except one. The one Subnet (172.17.180.0/22) should only have access to some domains.

          1.) I createad one "Target categories". There I entered all the domains I would like to access. I your case you should enter all domains you would like to block.

          2.) Group ACL: There I configured everything for the one subnet (172.17.180.0/22). I entered the "Client(Source)" subnet this rule should apply to.

          Default access is denied because I would like to block all except my sites I configured in "Target categories". So as you can see, for my target categorie I configured "whitelist" which could be "allow", too.

          3.) So now I have to configure what is happening with the other VLANs which should have access. Because I would not like to configure them all individual I use the tab "Common ACL"

          There is "default access" allowed and my target ist allowed, too.
          Take a look at the screenshots.

          So my subnet 172.17.180.0/22 is only allowed to sure microsoft.com and so on and no other site.
          All my other subnets are allowed to browse all websites they want.

          PS: At least remember, you ALWAYS have to go to "General settings tab", click SAVE at the bottom and then click "APPLY" on the top. You'll have to do that after every change you did in SquidGuard.

          If you have further questions, do not hesitate to ask. But first try to realize this with just one site/domain to see if it is working. Then try to add further domains or expressions. It is sometimes not really easy because squidguard isn't telling you everytime what is "really" wrong. Nevertheless it is a really good webGUI which catches such a complex thing.

          ![Target categories.jpg](/public/imported_attachments/1/Target categories.jpg)
          ![Target categories.jpg_thumb](/public/imported_attachments/1/Target categories.jpg_thumb)

          1 Reply Last reply Reply Quote 0
          • N
            Nachtfalke
            last edited by

            screens to large for one post

            ![Group ACL.jpg](/public/imported_attachments/1/Group ACL.jpg)
            ![Group ACL.jpg_thumb](/public/imported_attachments/1/Group ACL.jpg_thumb)

            1 Reply Last reply Reply Quote 0
            • N
              Nachtfalke
              last edited by

              last one

              ![Common ACL.jpg](/public/imported_attachments/1/Common ACL.jpg)
              ![Common ACL.jpg_thumb](/public/imported_attachments/1/Common ACL.jpg_thumb)

              1 Reply Last reply Reply Quote 0
              • C
                coachs88
                last edited by

                Okay, I am going to give this a go and see how things turn out.

                The one thing I am having a hard time wrapping my head around is this: if I want access blocked to all sites except a few, how am I to possibly write down every IP or domain that a user could access? Wouldn't I be working on the list all day since there are seemingly an infinite amount of websites out there?  ???

                "You are merely a better target in the light."

                1 Reply Last reply Reply Quote 0
                • N
                  Nachtfalke
                  last edited by

                  @coachs88:

                  Okay, I am going to give this a go and see how things turn out.

                  The one thing I am having a hard time wrapping my head around is this: if I want access blocked to all sites except a few, how am I to possibly write down every IP or domain that a user could access? Wouldn't I be working on the list all day since there are seemingly an infinite amount of websites out there?  ???

                  Do not try to BLOCK all sites which you would not like to allow. Try it the other way:
                  Just allow the sites you would like the users should access.
                  This is exactly what my scenario above describes. The "default access" is what you describe as "all sites". This describes all sites for which you have no special rule.

                  1 Reply Last reply Reply Quote 0
                  • C
                    coachs88
                    last edited by

                    I am going to try this first thing in the morning. I will post an update as soon as I've had a chance to implement the changes.

                    "You are merely a better target in the light."

                    1 Reply Last reply Reply Quote 0
                    • C
                      coachs88
                      last edited by

                      Before I implement this.. I thought that under the "Proxy Server" tab, I would leave the interface untouched because it technically applies to LAN and WAN, as it is supposed to block incoming and outgoing traffic. Am I wrong with this.. should I select only one?

                      I am excited to try this new configuration. :)

                      "You are merely a better target in the light."

                      1 Reply Last reply Reply Quote 0
                      • N
                        Nachtfalke
                        last edited by

                        Aehm…just apply it on your LAN interface(s).

                        It makes no sense (for me) to use it on WAN interface because the firewall blocks by default everything from WAN.

                        If you try to block google.com it would not make any sense to apply this on the WAN interface.

                        So in short: In proxy server just use your LAN interface(s).

                        1 Reply Last reply Reply Quote 0
                        • C
                          coachs88
                          last edited by

                          Ah! That part makes perfect sense now.

                          The last thing I am stuck on (at the moment) is in the proxy server settings.. I have no idea what port to make the proxy listen in on. Should it be the default 80 or 8080? Or something else? Also, it will not let me enter a valid log file directory. I am on a windows machine and it seems to be requesting a Linux based path. Is there a way around this?

                          Thanks again for your expertise and kindness. I really appreciate it!  :D

                          "You are merely a better target in the light."

                          1 Reply Last reply Reply Quote 0
                          • N
                            Nachtfalke
                            last edited by

                            Hi,

                            if squid is running in "transparent mode" there is no need for you to enter a port (or better it will not use the port you have entered). SQUID is automatically listening on port 80 because this is the only port SQUID can cache/log ind transparent mode.

                            If you are running squid in non-transparent mode, than you can chose nearly any port you like. The default squid port is 3128. In general there is no need to change this port.
                            But if you are running squid in non-transparent mode, than you will have to enter the proxy server address on EVERY client machine.
                            If you did not enter this ip in the clients browser, then the client will not use the proxy and bypass the proxy. This will make it absolutley necessary that you will block all other connections not going directly to your squid. The only way for you LAN clients to go to the internet (www.google.com) must be this way:

                            LAN-Client –-> Proxy (IP:port) ---> www.google.com

                            It must not be:
                            LAN-Client ---> www.google.com

                            If your clients are running in an ActiveDirectory (AD) then you can push the proxy setting via GPO. If not, you have to do this by hand.

                            Log-Path:
                            The log path of squid is:
                            /var/squid/logs
                            on your pfsense machine. You cannot redirect this logs on a windows machine (as far as I know) and it makes no sense. If you would like to have a look at the logs, just use the "lightsquid" package and you can analyze your squid logs from pfsense webGUI.

                            1 Reply Last reply Reply Quote 0
                            • C
                              coachs88
                              last edited by

                              I finally was able to implement all the changes you suggested. I went to a client computer which was supposed to have limited access and it is still not working. I'm not sure if this is due to my little understanding of this proxy or what. I am at a loss of what to do at this point.  ???

                              The workstation is still able to access websites in which are blocked by default. I am very confused.

                              "You are merely a better target in the light."

                              1 Reply Last reply Reply Quote 0
                              • D
                                dvserg
                                last edited by

                                You are sure what you clients browse sites via proxy ?
                                Define proxy directly in clients browser and check access again.

                                SquidGuardDoc EN  RU Tutorial
                                Localization ru_PFSense

                                1 Reply Last reply Reply Quote 0
                                • C
                                  coachs88
                                  last edited by

                                  I guess I'm not sure, to be honest.

                                  I wanted it sat up so the users didn't have to do anything, such as type in a proxy address. Won't they have to do it everytime they log in or something? The users at my job are NOT technically inclined AT ALL.  I'm starting to feel as though I don't know enough to set this up.

                                  What do I need to do to understand this properly? Is it even going to be possible to get this working at this point with my level of understanding?

                                  "You are merely a better target in the light."

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    dvserg
                                    last edited by

                                    @coachs88:

                                    I guess I'm not sure, to be honest.

                                    I wanted it sat up so the users didn't have to do anything, such as type in a proxy address. Won't they have to do it everytime they log in or something? The users at my job are NOT technically inclined AT ALL.  I'm starting to feel as though I don't know enough to set this up.

                                    What do I need to do to understand this properly? Is it even going to be possible to get this working at this point with my level of understanding?

                                    Now the question of efficiency filter. Please do as I wrote above, and check his work.

                                    SquidGuardDoc EN  RU Tutorial
                                    Localization ru_PFSense

                                    1 Reply Last reply Reply Quote 0
                                    • C
                                      coachs88
                                      last edited by

                                      Okay.. I tried this but I'm still doing something wrong.

                                      I'm not sure if I have the wrong proxy address or the wrong port.. I thought I entered the port I chose the proxy to listen to (3128) but that didn't work. Nor did port 8080 or 80. I must have the proxy address wrong. But if that isn't right I guess I don't know how else to find it.

                                      Unless my proxy filter settings are somehow messed up?

                                      I tried manually configuring the proxy in Mozilla Firefox.. and after I applied it no matter what site I chose, it wouldn't connect to any of them. At the bottom of the browser it just said "Connecting to ______.com" and then it would time out. :(

                                      Sorry for being so inexperienced. I'm glad you folks are willing to push me in the right direction.

                                      "You are merely a better target in the light."

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        dvserg
                                        last edited by

                                        It is possible to see a screenshot of the settings of your proxy squid ? (pfsense - proxy's first page)

                                        SquidGuardDoc EN  RU Tutorial
                                        Localization ru_PFSense

                                        1 Reply Last reply Reply Quote 0
                                        • C
                                          coachs88
                                          last edited by

                                          Certainly!

                                          proxy1.png
                                          proxy1.png_thumb

                                          "You are merely a better target in the light."

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            coachs88
                                            last edited by

                                            Here's the second part.

                                            proxy2(1).png_thumb
                                            proxy2(1).png

                                            "You are merely a better target in the light."

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