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

Squidguard… problems and questions

Scheduled Pinned Locked Moved pfSense Packages
31 Posts 8 Posters 39.9k 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.
  • M Offline
    mwdiers
    last edited by Mar 25, 2008, 3:30 PM

    I just did a clean pfSense install last night, and managed to get squidGuard running. However, this was very difficult. I had many of the same problems noted here.

    It was VERY touchy. Often squidGuard would say STOPPED. The only way to make it say STARTED was to upload the blacklist again. Then, if I changed ANY setting, the filter would stop working.

    For example: I uploaded the blacklist. Clicked Save. I changed default destination to:```
    !all

    
    I changed squidGuard to:```
    !blk_BL_porn all
    ```I clicked **Apply**. Now nothing was blocked. Porn and everything else was let through. I saw squid logging the website access. I saw no errors of any kind in the squidGuard or the squid logs.
    
    Very frustrating. I checked permissions. I tried changing /var/squidGuard to proxy:proxy (chmod -R proxy:proxy /var/squidGuard). No help.
    
    It was very slow downloading the blacklist over and over, so I fetched it to: /var/tmp/squidGuard/hold/shallalist.tar.gz and set that path for **Blacklist URL**. That way I could just click **Upload Url**, and the DB would be processed again.
    
    Everything works ONLY when I perform the following steps:
    
    1) Change filter settings.
    2) **Apply**.
    3) Click **Upload Url**.
    4) Click **Apply**.
    
    In other words, the filter stops working every time I change a squidGuard setting. It works again if I re-process the database.
    
    As I said, there were never any error messages, so there is nothing I can send from the logs.
    1 Reply Last reply Reply Quote 0
    • W Offline
      wompy
      last edited by Mar 25, 2008, 7:01 PM

      I had similar problems to you, did you also change permissions to " /var/db/squidGurad" ? that is what finally fixed it for me.
      see my previous post.

      1 Reply Last reply Reply Quote 0
      • D Offline
        dvserg
        last edited by Mar 25, 2008, 8:31 PM

        Thanks!
        I fix bug with '/var/db/squidGuard' right's  in installation.
        Pls test.

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

        1 Reply Last reply Reply Quote 0
        • M Offline
          Monoecus
          last edited by Apr 2, 2008, 8:02 AM

          I have reinstalled pfSense yesterday and could thus test your fixes for the rights. Anything seems to be ok now.

          Many thanks.

          1 Reply Last reply Reply Quote 0
          • H Offline
            hinze57
            last edited by May 8, 2008, 1:52 AM

            Is there a way to enable safe search?

            1 Reply Last reply Reply Quote 0
            • M Offline
              Monoecus
              last edited by May 12, 2008, 8:54 PM

              What do you mean by “safe search”?

              1 Reply Last reply Reply Quote 0
              • X Offline
                xhark
                last edited by May 15, 2008, 1:32 PM

                I have same problem, all is ok but nothing is filtered

                SysNetAdmin & Blogger on http://blogmotion.fr

                1 Reply Last reply Reply Quote 0
                • D Offline
                  dvserg
                  last edited by May 15, 2008, 1:37 PM

                  Renew package (today updated) and try now.

                  SquidGuardDoc EN  RU Tutorial
                  Localization ru_PFSense

                  1 Reply Last reply Reply Quote 0
                  • X Offline
                    xhark
                    last edited by May 15, 2008, 1:43 PM

                    I delete and reinstall ?

                    SysNetAdmin & Blogger on http://blogmotion.fr

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      dvserg
                      last edited by May 15, 2008, 1:46 PM

                      @xhark:

                      I delete and reinstall ?

                      Hm.. Try full reinstall :D

                      SquidGuardDoc EN  RU Tutorial
                      Localization ru_PFSense

                      1 Reply Last reply Reply Quote 0
                      • X Offline
                        xhark
                        last edited by May 15, 2008, 1:47 PM

                        I talk about package ^^

                        SysNetAdmin & Blogger on http://blogmotion.fr

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          dvserg
                          last edited by May 15, 2008, 1:49 PM

                          @xhark:

                          I talk about package ^^

                          Yes. Reinstall package

                          SquidGuardDoc EN  RU Tutorial
                          Localization ru_PFSense

                          1 Reply Last reply Reply Quote 0
                          • X Offline
                            xhark
                            last edited by May 15, 2008, 2:48 PM May 15, 2008, 1:58 PM

                            It's done but not filtering is active :(

                            Can I delete times ?

                            here is my log :

                            5.05.2008 16:44:52 : sg_reconfigure: Begin.
                            15.05.2008 16:44:52 : sg_reconfigure_user_db: Begin with '/var/db/squidGuard'
                            15.05.2008 16:44:52 : sg_reconfigure_user_db: Nothing. User destinations list empty.
                            15.05.2008 16:44:52 : sg_remove_unused_db_entries: Begin.
                            15.05.2008 16:44:52 : sg_remove_unused_db_entries: end
                            15.05.2008 16:44:52 : sg_create_config: Create squidGuard config.
                            15.05.2008 16:44:52 : sg_create_config: Checking configuration data.
                            15.05.2008 16:44:52 : sg_create_config: Error configuration data. It's all errors:
                            BLACKLIST 'blk_blacklists_agressif' error: file '/var/db/squidGuard/blk_blacklists_agressif' not found
                            BLACKLIST 'blk_blacklists_drugs' error: file '/var/db/squidGuard/blk_blacklists_drugs' not found
                            BLACKLIST 'blk_blacklists_mail' error: file '/var/db/squidGuard/blk_blacklists_mail' not found
                            BLACKLIST 'blk_blacklists_porn' error: file '/var/db/squidGuard/blk_blacklists_porn' not found
                            BLACKLIST 'blk_blacklists_publicite' error: file '/var/db/squidGuard/blk_blacklists_publicite' not found
                            BLACKLIST 'blk_blacklists_redirector' error: file '/var/db/squidGuard/blk_blacklists_redirector' not found
                            BLACKLIST 'blk_blacklists_violence' error: file '/var/db/squidGuard/blk_blacklists_violence' not found
                            15.05.2008 16:44:52 : sg_create_config: Terminated.
                            15.05.2008 16:44:52 : sg_create_simple_config: Begin with dbhome='/var/db/squidGuard'.
                            15.05.2008 16:44:52 : sg_redirector_base_url: Select redirector base url (https://192.168.0.254/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)
                            15.05.2008 16:44:52 : sg_reconfigure: Generate squidGuard config and save to '/usr/local/etc/squidGuard/squidGuard.conf'.
                            15.05.2008 16:44:52 : squid_reconfigure: Begin.
                            15.05.2008 16:44:52 : squid_reconfigure: Remove old redirector options from Squid config.
                            15.05.2008 16:44:52 : squid_reconfigure: Add new redirector options to Squid config.
                            15.05.2008 16:44:52 : sg_init: Start.
                            15.05.2008 16:45:01 : sg_init: Start.
                            15.05.2008 16:45:02 : sg_init: Start.

                            SysNetAdmin & Blogger on http://blogmotion.fr

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              dvserg
                              last edited by May 15, 2008, 5:23 PM

                              Upload blacklist previous version not make blacklist archive. And temporary set HTTP webGUI pfSense. In https can have troubles.

                              SquidGuardDoc EN  RU Tutorial
                              Localization ru_PFSense

                              1 Reply Last reply Reply Quote 0
                              • X Offline
                                xhark
                                last edited by May 16, 2008, 6:18 AM

                                What can I do ? If I add small GZ blacklist it's OK, but with big blacklist it fails (ftp://ftp.univ-tlse1.fr/pub/reseau/cache/squidguard_contrib/blacklists.tar.gz)

                                SysNetAdmin & Blogger on http://blogmotion.fr

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  dvserg
                                  last edited by May 16, 2008, 6:25 AM

                                  @xhark:

                                  What can I do ? If I add small GZ blacklist it's OK, but with big blacklist it fails (ftp://ftp.univ-tlse1.fr/pub/reseau/cache/squidguard_contrib/blacklists.tar.gz)

                                  Check you url manually - may be broken arhive?
                                  Also looking this http://www.squidguard.org/blacklists.html,
                                  i use http://www.shallalist.de/Downloads/shallalist.tar.gz

                                  SquidGuardDoc EN  RU Tutorial
                                  Localization ru_PFSense

                                  1 Reply Last reply Reply Quote 0
                                  • X Offline
                                    xhark
                                    last edited by May 16, 2008, 6:57 AM

                                    Yes I've open this with 7zip without any problem.

                                    I've test to send this in /tmp/my_directory and precise local directory to SG config, but same problem. I'll test your list and go back here ;)

                                    SysNetAdmin & Blogger on http://blogmotion.fr

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      dvserg
                                      last edited by May 16, 2008, 7:32 AM

                                      @xhark:

                                      Yes I've open this with 7zip without any problem.

                                      I've test to send this in /tmp/my_directory and precise local directory to SG config, but same problem. I'll test your list and go back here ;)

                                      Ok
                                      I will test and replay here.

                                      SquidGuardDoc EN  RU Tutorial
                                      Localization ru_PFSense

                                      1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        jwbrown77
                                        last edited by Jun 30, 2008, 12:36 AM

                                        I was having some squidguard problems too and tracked down a different issue than what I've seen in this thread.

                                        I am attempting to run the shallalist rules and after a lot of troubleshooting I finally noticed in the squidguard log that it couldn't find blk_BL_politics

                                        I noticed that there's a blk_BL_politcs (notice no i) but not one with the proper spelling.  So I just symlinked the proper spelling to the improper spelling and after that it seems to work fine.

                                        Thanks to the package maintainer for providing this software.

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                          [[user:consent.lead]]
                                          [[user:consent.not_received]]