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

    Dansguardian package for 2.0

    Scheduled Pinned Locked Moved pfSense Packages
    492 Posts 51 Posters 471.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.
    • W
      wheelz
      last edited by

      @wheelz:

      On my other machine where I had a blacklist set up to download, the dansguardian package update/reinstall gets stuck here:

      I'm not seeing this issue here, can you check the size of you blacklist file (/usr/local/pkg/blacklist.tgz)?

      I didn't get back to it and so I left it overnight.  It still was stuck on that screen when I came back to it this morning.  Here is the file info (user name x'd out):

      -rw-r–r--  1 root  xxxxx  9917215 Feb 13 19:00 /usr/local/pkg/blacklist.tgz

      1 Reply Last reply Reply Quote 0
      • S
        samham
        last edited by

        completed downloaded file size:

        -rw-r–r--  1 root  wheel  20825700 Feb  8 00:10 /usr/local/pkg/blacklist.tgz

        1 Reply Last reply Reply Quote 0
        • W
          wheelz
          last edited by

          @wheelz:

          @wheelz:

          On my other machine where I had a blacklist set up to download, the dansguardian package update/reinstall gets stuck here:

          I'm not seeing this issue here, can you check the size of you blacklist file (/usr/local/pkg/blacklist.tgz)?

          I didn't get back to it and so I left it overnight.  It still was stuck on that screen when I came back to it this morning.  Here is the file info (user name x'd out):

          -rw-r–r--  1 root  xxxxx  9917215 Feb 13 19:00 /usr/local/pkg/blacklist.tgz

          I ended up having to completely uninstall dansguardian, squid3 and then reinstall.  Will continue testing…

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

            Same error.  Hangs on checking blacklist.

            1 Reply Last reply Reply Quote 0
            • marcellocM
              marcelloc
              last edited by

              I'm testing on 2.0.3.  What version are you using?

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

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

                2.12.0.3

                1 Reply Last reply Reply Quote 0
                • W
                  wheelz
                  last edited by

                  My pfsense version is 2.0.2

                  1 Reply Last reply Reply Quote 0
                  • W
                    wheelz
                    last edited by

                    @wheelz:

                    @marcelloc:

                    @wheelz:

                    so I guess it is fully a code/package issue?

                    It's a php limit on pfsense, the problem is to fit large lists on this 256Mb limit on amd64 version

                    @wheelz:

                    Anything I can do to work around it until you update it?  At some point it was working until I started making my groups.

                    How big are your groups user list?

                    I've pushed pkg v 0.1.7_2 with group acl check.

                    Actually, right now I only have 5 users in those groups…

                    I ran into the memory issue again.  I'm guessing that since so there are so many config files for dansguardian that it is filling up its max memory easily when you start configuring everything.  Any way to increase the amount of memory it can use?  I have like 4GB in my box and it show only 17% used right now so I have plenty to spare.

                    1 Reply Last reply Reply Quote 0
                    • marcellocM
                      marcelloc
                      last edited by

                      @mschiek01:

                      2.12.0.3

                      pfsense version 2.0.2?

                      did you tried to update danguardian bin from my hepo to fix upload size bug?

                      Treinamentos de Elite: http://sys-squad.com

                      Help a community developer! ;D

                      1 Reply Last reply Reply Quote 0
                      • marcellocM
                        marcelloc
                        last edited by

                        @wheelz:

                        I ran into the memory issue again.  I'm guessing that since so there are so many config files for dansguardian that it is filling up its max memory easily when you start configuring everything.  Any way to increase the amount of memory it can use?  I have like 4GB in my box and it show only 17% used right now so I have plenty to spare.

                        I'll try to reduce php memory usage on dansguardian apply this weekend.

                        On amd64 system it's set to 256. to use more, you need to edit php limit on pfsense config files and on package inc file.

                        Treinamentos de Elite: http://sys-squad.com

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • E
                          elemay
                          last edited by

                          Hi,

                          i have the same issues.

                          Allowed memory size of 262144000 bytes exhausted (tried to allocate 71 bytes) in /usr/local/pkg/dansguardian.inc on line 1138
                          

                          and also it doesn't continue installing the package after downloading blacklists file.

                          1 Reply Last reply Reply Quote 0
                          • W
                            wheelz
                            last edited by

                            @marcelloc:

                            I'll try to reduce php memory usage on dansguardian apply this weekend.

                            On amd64 system it's set to 256. to use more, you need to edit php limit on pfsense config files and on package inc file.

                            Is that standard for all packages?  If so, perhaps I'll submit it as an enhancement request to allow changing the max memory for a package in the GUI.

                            and also it doesn't continue installing the package after downloading blacklists file.

                            Not sure what the issue here was but I was able to get it to install by first deleting the blacklists file and then doing an uninstall and reinstall of dansguardian and squid3 (I use squid3 in my case).

                            1 Reply Last reply Reply Quote 0
                            • marcellocM
                              marcelloc
                              last edited by

                              Do you have Clamav enabled on your dansguardian config? I've received a report today saying that clamav settings are reaching php memory limit.

                              Treinamentos de Elite: http://sys-squad.com

                              Help a community developer! ;D

                              1 Reply Last reply Reply Quote 0
                              • W
                                wheelz
                                last edited by

                                @marcelloc:

                                Do you have Clamav enabled on your dansguardian config? I've received a report today saying that clamav settings are reaching php memory limit.

                                Yes, I do.  Is there a fix for it because it is happening every save now.  If not, which files do you edit exactly to raise the limit?  Obviously like to get it fixed the right way but that would at least help me configure it for now without getting the error every save.

                                1 Reply Last reply Reply Quote 0
                                • A
                                  aru
                                  last edited by

                                  Hi Marcelloc,

                                  I am also facing the same memory exhausted issues on pf 2.0.2-RELEASE (i386).  I have installed dg 2.12.0.3 pkg v.0.1.7_3 with
                                  squid 3.1.20 pkg 2.0.6 and sarg reports.  Can you please tell me which files need to edit to increase php memory?

                                  Regards.

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    samham
                                    last edited by

                                    another issue I noticed since the upgrade is that on every save dansguardian creates a new entry in the crontab, this easily reproduced by clicking the save button. I'm running 2.12.0.3 pkg v.0.1.7_3   here's how mine looks like:

                                    0 0 */7 * * root /usr/local/bin/php /usr/local/www/dansguardian.php fetch_blacklist
                                    0 0 */7 * * root /usr/local/bin/php /usr/local/www/dansguardian.php fetch_blacklist
                                    0 0 */7 * * root /usr/local/bin/php /usr/local/www/dansguardian.php fetch_blacklist
                                    0 0 */7 * * root /usr/local/bin/php /usr/local/www/dansguardian.php fetch_blacklist
                                    0 0 */7 * * root /usr/local/bin/php /usr/local/www/dansguardian.php fetch_blacklist
                                    0 0 */7 * * root /usr/local/bin/php /usr/local/www/dansguardian.php fetch_blacklist
                                    0 0 */7 * * root /usr/local/bin/php /usr/local/www/dansguardian.php fetch_blacklist
                                    0 0 */7 * * root /usr/local/bin/php /usr/local/www/dansguardian.php fetch_blacklist
                                    0 0 */7 * * root /usr/local/bin/php /usr/local/www/dansguardian.php fetch_blacklist

                                    1 Reply Last reply Reply Quote 0
                                    • marcellocM
                                      marcelloc
                                      last edited by

                                      @samham:

                                      another issue I noticed since the upgrade is that on every save dansguardian creates a new entry in the crontab, this easily reproduced by clicking the save button. I'm running 2.12.0.3 pkg v.0.1.7_3   here's how mine looks like:

                                      I'm not getting this issue here. tried with and without clamav update

                                      Treinamentos de Elite: http://sys-squad.com

                                      Help a community developer! ;D

                                      1 Reply Last reply Reply Quote 0
                                      • marcellocM
                                        marcelloc
                                        last edited by

                                        @aru:

                                        Can you please tell me which files need to edit to increase php memory?

                                        create a backup file for /etc/inc/config.inc on /root folder then edit it and change

                                        ini_set("memory_limit","128M") to ini_set("memory_limit","256M")

                                        and on dansguardian.inc file, comment line 42

                                        if ($uname['machine'] == 'amd64')

                                        maybe you will need to reboot the box.

                                        Keep in mind that editng pfsense files is a Do at your own risk job  ;)

                                        Treinamentos de Elite: http://sys-squad.com

                                        Help a community developer! ;D

                                        1 Reply Last reply Reply Quote 0
                                        • W
                                          wheelz
                                          last edited by

                                          Thanks marcelloc.  Is this a dansguardian, clamav, or general pfsense issue?  I'd like to make the change for now to work around it but then if there is a bug submitted somewhere then I could track it for when it is fixed without bugging you about it.  If you know of one, please share.  Thanks again!

                                          1 Reply Last reply Reply Quote 0
                                          • marcellocM
                                            marcelloc
                                            last edited by

                                            I'ts not an issue. The code is the to prevent php from using a lot of memory.

                                            Treinamentos de Elite: http://sys-squad.com

                                            Help a community developer! ;D

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