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

    SquidGuard and URL Blacklist

    Scheduled Pinned Locked Moved pfSense Packages
    11 Posts 2 Posters 18.8k 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.
    • H
      hdr
      last edited by

      Hello,

      I don't understand, when i download the blacklist "shallalist" in squidGuard, I have nothing in Common ACL and target rules.

      I think the Blacklist update log is good :

      Begin blacklist update
      Start download.
      Download archive http://www.shallalist.de/Downloads/shallalist.tar.gz
      Download complete
      Unpack archive
      Scan blacklist categories.
      Found 74 items.
      Start rebuild DB.
      Copy DB to workdir.
      Reconfigure Squid proxy.
      Blacklist update complete.

      I try with version 2.1.3 and 2.1.4 and to reinstall all squid package squid and  squidguard but unsuccessfull.

      Thanks for your help.
      Sorry for my english

      Regards
      Hadrien

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

        Did you also remember to go to Services - Proxy filter - General settings - Blacklist, check the Blacklist option and fill in the Blacklist URL?

        1 Reply Last reply Reply Quote 0
        • H
          hdr
          last edited by

          Yes, the option is checked, and the box is filled with the URL: http://www.shallalist.de/Downloads/shallalist.tar

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

            I use http://www.shallalist.de/Downloads/shallalist.tar.gz, and it specifically tells you to use that file name.  Was that a typo or do you have it wrong?

            1 Reply Last reply Reply Quote 0
            • H
              hdr
              last edited by

              I've the same link ;).

              1 Reply Last reply Reply Quote 0
              • H
                hdr
                last edited by

                Here are System logs :

                Aug 12 19:18:30 php: squidGuard_blacklist_update.sh: The command '/sbin/mdmfs -s 300M md15 /tmp/squidGuard' returned exit code '1', the output was 'mdmfs: mount exited with error code 64'

                Aug 12 19:18:30 php: squidGuard_blacklist_update.sh: The command 'chmod 1777 /tmp/squidGuard' returned exit code '1', the output was 'chmod: /tmp/squidGuard: No such file or directory'

                Aug 12 19:18:31 kernel: pid 57641 (bsdtar), uid 0 inumber 4149 on /tmp: filesystem full

                Aug 12 19:18:31 kernel: pid 57641 (bsdtar), uid 0 inumber 1347 on /tmp: filesystem full

                Aug 12 19:18:31 php: squidGuard_blacklist_update.sh: The command 'tar zxvf /tmp/squidguard_blacklist.tar -C /tmp/squidGuard/unpack' returned exit code '1', the output was 'tar: Failed to set default locale x BL/ x BL/updatesites/ x BL/updatesites/urls x BL/updatesites/domains x BL/military/ x BL/military/urls x BL/military/domains x BL/webtv/ x BL/webtv/urls x BL/webtv/domains x BL/anonvpn/ x BL/anonvpn/urls x BL/anonvpn/domains x BL/adv/ x BL/adv/urls x BL/adv/domains x BL/global_usage x BL/religion/ x BL/religion/urls x BL/religion/domains x BL/sex/ x BL/sex/education/ x BL/sex/education/urls x BL/sex/education/domains x BL/sex/lingerie/ x BL/sex/lingerie/urls x BL/sex/lingerie/domains x BL/news/ x BL/news/urls x BL/news/domains x BL/dynamic/ x BL/dynamic/urls x BL/dynamic/domains x BL/forum/ x BL/forum/urls x BL/forum/domains x BL/science/ x BL/science/chemistry/ x BL/science/chemistry/urls x BL/science/chemistry/domains x BL/science/astronomy/ x BL/science/astronomy/urls x BL/science/astronomy/domains

                Aug 12 19:18:41 php: squidGuard_blacklist_update.sh: The command 'cp -f -p /tmp/squidGuard/arcdb/blacklist.files /usr/pbi/squidguard-amd64/etc/squidGuard' returned exit code '1', the output was 'cp: /usr/pbi/squidguard-amd64/etc/squidGuard/blacklist.files: Read-only file system'

                Aug 12 19:18:41 php: squidGuard_blacklist_update.sh: The command 'umount -f /tmp/squidGuard' returned exit code '1', the output was 'umount: /tmp/squidGuard: not a file system root directory'

                Aug 12 19:19:27 php: squidGuard_blacklist_update.sh: The command 'cp -f -p /tmp/squidGuard/arcdb/blacklist.files /usr/pbi/squidguard-amd64/etc/squidGuard' returned exit code '1', the output was 'cp: /usr/pbi/squidguard-amd64/etc/squidGuard/blacklist.files: Read-only file system'

                problem with tar command ?
                but the files are present in : /var/db/squidGuard

                When i try to restore default i have this in blacklist log :

                Restore default blacklist DB.
                Restore error: File /var/db/squidGuard.sample or /usr/pbi/squidguard-amd64/etc/squidGuard/blacklist.files not found.

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

                  I don't suppose that you are running the nano version of pfSense?  Those errors show that the whole operation is failing because your file system is full.

                  1 Reply Last reply Reply Quote 0
                  • H
                    hdr
                    last edited by

                    I use pfsense pfSense-2.1.4-RELEASE-4g-amd64-nanobsd.img  I put in on a USB memstick with phydiskwrite.
                    All is running on an Alix board apu1c

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

                      Well, there is your problem.  SquidGuard is not supported on nano.  The /var and /tmp folders are on a ramdisk.

                      1 Reply Last reply Reply Quote 0
                      • H
                        hdr
                        last edited by

                        No possibility to change his folder ?

                        My goal was to make a captive portal, retrieve logs, filter user'sconnections with squidguard and send them to a remote server.

                        Is it possbile to do this with any other package?

                        Thank you again for your great help :).

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

                          You can change the size via System - Advanced - Miscellaneous - RAM Disk Settings.

                          Edit:  Removed bogus advice to not increase RAM disk on nano.

                          See this thread:

                          https://forum.pfsense.org/index.php?topic=80410.0

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