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

    SquidGuard error in processing big blacklist

    Scheduled Pinned Locked Moved Cache/Proxy
    1 Posts 1 Posters 391 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
      moscard
      last edited by

      Behaviour :
      SquidGuard do not filter end of a big blacklist
      By instance, it blocks correctly pornhub.com but let free access to xvideo.com even if it is in the blacklist.

      Cause:

      • The RAMdisk size for /tmp/squidGuard is too small.
      • Strangely SquidGurad do not display nor log any error.
      • The only found error is on system log:
        Jul 2 23:05:07 kernel pid 5419 (squidGuard), uid 0 inumber 9742 on /tmp/squidGuard: filesystem full

      Fix (workaround) :
      At the line 1985 of the /usr/local/pkg/squidguard_configurator.inc script file, I had to change " $ramsize = 300;" by " $ramsize = 600;" doubling the ramdisk size.

      #*****************************************************************************
      # RAMDisk
      #     Temp ramdisk for quickly DB update
      # *****************************************************************************
      function squidguard_ramdisk($enable)
      {
          $ramsize = 300;
      
          # delete old squidguard ramdisk
          if (file_exists("/dev/md15")) {
              mwexec("/sbin/umount -f " . SQUIDGUARD_TMP);
              mwexec("sleep 1");
              mwexec("/sbin/mdconfig -d -u 15");
          }
      ...
      

      Is that possible to fix this on future releases or give an option on SquidGuard GUI to provide the RAMdisk size ?

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