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

    Configuration of squidguard

    Scheduled Pinned Locked Moved pfSense Packages
    13 Posts 4 Posters 8.6k 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.
    • R
      Rom
      last edited by

      I do like http://diskatel.narod.ru/sgquick.htm,
      I check the right of /usr/local/etc/squidguard and /var/db/squidGuard and their are 755 / proxy so it's OK.

      I check the webGUI log

      28.05.2008 14:08:23 : sg_reconfigure: Generate squidGuard config and save to '/usr/local/etc/squidGuard/squidGuard.conf'.
      28.05.2008 14:08:23 : squid_reconfigure: Begin.
      28.05.2008 14:08:23 : squid_reconfigure: Remove old redirector options from Squid config.
      28.05.2008 14:08:23 : squid_reconfigure: Add new redirector options to Squid config.
      28.05.2008 14:08:24 : sg_init: Start.
      28.05.2008 14:08:26 : sg_init: Start.
      28.05.2008 14:08:26 : sg_reconfigure: Begin.
      28.05.2008 14:08:26 : sg_reconfigure_user_db: Begin with '/var/db/squidGuard'
      28.05.2008 14:08:26 : sg_reconfigure_user_db: Nothing. User destinations list empty.
      28.05.2008 14:08:26 : sg_remove_unused_db_entries: Begin.
      28.05.2008 14:08:26 : sg_remove_unused_db_entries: end
      28.05.2008 14:08:26 : sg_create_config: Create squidGuard config.
      28.05.2008 14:08:26 : sg_create_config: Checking configuration data.
      28.05.2008 14:08:26 : sg_create_config: Error configuration data. It's all errors:
      BLACKLIST 'blk_BL_politics' error: file '/var/db/squidGuard/blk_BL_politics' not found
      28.05.2008 14:08:26 : sg_create_config: Terminated.
      28.05.2008 14:08:26 : sg_create_simple_config: Begin with dbhome='/var/db/squidGuard'.
      28.05.2008 14:08:26 : sg_redirector_base_url: Select redirector base url (http://192.168.1.1/sgerror.php?url=Error%21%20Check%20squidGuard%20configuration%20data.%20%28sg_create_config%3A%20%5B2%5D%29.&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u)
      28.05.2008 14:08:26 : sg_reconfigure: Generate squidGuard config and save to '/usr/local/etc/squidGuard/squidGuard.conf'.
      28.05.2008 14:08:26 : squid_reconfigure: Begin.
      28.05.2008 14:08:26 : squid_reconfigure: Remove old redirector options from Squid config.
      28.05.2008 14:08:26 : squid_reconfigure: Add new redirector options to Squid config.
      28.05.2008 14:08:27 : sg_init: Start.

      The config file is never update, and always is specified pass all :

      acl {
      default {
      pass all redirect http://192.168.1.1/sgerror.php?url=Error%21%20Check%20squidGuard%20configuration%20data.%20%28sg_create_config%3A%20%5B2%5D%29.&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
      }
      }

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

        You have error in you GUI settings or you not success install blacklist.
        Open & SAVE Default page and each ACL pages for fix.

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

        1 Reply Last reply Reply Quote 0
        • M
          Monoecus
          last edited by

          No, you are right. This error has nothing to do with you. It has to do with the fact that the shallalist has made a mistake. They publish the list with a directory called “politcs” which has a typo. So, instead of just renaming this directory, they make a symbol link from politics to politcs. That is something, squidGuard obviously has problems with. I have encountered the same problem.

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

            @Monoecus:

            No, you are right. This error has nothing to do with you. It has to do with the fact that the shallalist has made a mistake. They publish the list with a directory called “politcs” which has a typo. So, instead of just renaming this directory, they make a symbol link from politics to politcs. That is something, squidGuard obviously has problems with. I have encountered the same problem.

            Hm.. interest bug. Thanks!
            Can you not-use politic rule? Temporary?

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

            1 Reply Last reply Reply Quote 0
            • M
              Monoecus
              last edited by

              No. I do not use the Politics/Politcs rule but still have the problem. Above in the log of Rom you see:

              28.05.2008 14:08:26 : sg_create_config: Error configuration data. It's all errors:
              BLACKLIST 'blk_BL_politics' error: file '/var/db/squidGuard/blk_BL_politics' not found

              So, I think the problem starts with indexing.

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

                /usr/local/etc/squidGuard/blacklist.files
                Edit blk_BL_politics > blk_BL_politcs

                SquidGuardDoc EN  RU Tutorial
                Localization ru_PFSense

                1 Reply Last reply Reply Quote 0
                • M
                  Monoecus
                  last edited by

                  I just deleted politics in this file after updating the list. However, it seems to be that this has to be done everytime one updates the shallalist.

                  1 Reply Last reply Reply Quote 0
                  • R
                    Rom
                    last edited by

                    OK, it's work

                    Finally, i duplicate and rename the blk_BL_politics folder in blk_BL_politcs.

                    Whan i start squidguard all it's OK and then the squidguard.conf is up to date.

                    So my squidguard rule's works fine.

                    Thx a lot

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

                      Has anyone reported this to Shallalist so it can be fixed?  I came across the same problem.  Anyone that doesn't know how to use SSH and navigate the BSD file system will be totally lost with this one.  I can navigate somewhat.  I've created the blk_BL_politics and chowned it to proxy:proxy and copied the files in the other directory to it, still getting the same error.  I've modified the line in blacklist.files as stated above, STILL get the same error.  What do I do?  My SG is down because of this one little typo.  Ouch.

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

                        Edit and store you ACL's.

                        SquidGuardDoc EN  RU Tutorial
                        Localization ru_PFSense

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