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

    Dansguardian 2.12.0.3 Signal 11

    Scheduled Pinned Locked Moved pfSense Packages
    89 Posts 8 Posters 40.2k 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.
    • F
      Fredb
      last edited by

      Sorry about my English, I guess I'm not clear

      I mean DG used not optimized codes, in Fatcontrol.cpp, Philip Pearce has rewrites large parts of codes for Linux only (epoll), it's the first step, and the result is very very impressive.

      My part was to preserve the old code in compilation, so:

      Linux -> Many parts with epoll (still some old parts)
      BSD -> Perhaps I made some minor fixes, and perhaps I put some new bugs, but no major changes (old codes)

      So for beginning this version need tests with BSD (code broken ?), it's the second step, and after will do exactly the same work for BSD ( but with Kqueue http://en.wikipedia.org/wiki/Kqueue ).

      I think we also works about some new features …

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

        @Fredb:

        My part was to preserve the old code in compilation, so:

        Linux -> Many parts with epoll (still some old parts)
        BSD -> Perhaps I made some minor fixes, and perhaps I put some new bugs, but no major changes (old codes)

        Is this the latest code with your changes? http://numsys.eu/dansguardian/dansguardian-2.12.0.7.tar.gz

        1 Reply Last reply Reply Quote 0
        • F
          Fredb
          last edited by

          @rjcrowder:

          @Fredb:

          My part was to preserve the old code in compilation, so:

          Linux -> Many parts with epoll (still some old parts)
          BSD -> Perhaps I made some minor fixes, and perhaps I put some new bugs, but no major changes (old codes)

          Is this the latest code with your changes? http://numsys.eu/dansguardian/dansguardian-2.12.0.7.tar.gz

          Yes right, all the code is between #ifdef linux tag in Fatcontrol.cpp (code from Philip Pearce of http://www.e2bn.org/ )
          I think there are also some work to do in basesocket.cpp, we will do it later, to improve again

          1 Reply Last reply Reply Quote 0
          • F
            Fredb
            last edited by

            Please try
            http://numsys.eu/dansguardian/dansguardian-2.12.0.7.1.tar.gz

            1 Reply Last reply Reply Quote 0
            • N
              neil
              last edited by

              This problem has grown to become a major issue for several sites I support and any help would be much appreciated. I joined this thread several months ago, at which time the problem was not so serious.

              The setup is as follows:

              PF Sense 2.0.3 amd64
              DG 2.12.0.3 v.0.1.8
              Squid 2.7.9 v.4.3.3
              The server is an IBM x3100 with 8Gb RAM, 500Gb HDD.

              Min/Max Children 32/1200 (anything less than 1000 for the Maximum causes swarms of Signal 11 errors with complete loss of internet access for the users)

              On a test server I attempted to download the patch version 2.12.0.5 made available by Marcelloc but could not successfully install this.

              I've now downloaded 2.12.0.6.sig11 made available by Marcelloc, and finally got this running on a test server.
              The steps I followed were:

              -Download the tbz file to a Windows machine, and copy this across to the PFsense server
              (using the fetch command on the pfsense server failed with an invalid tbz file error)

              -killall dansguardian

              • pkg_delete dansguardian- 2.12.0.3
                (this created a number of errors relating to files/directories which it could not delete)

              • pkg_add dansguardian-2.12.0.6.sig11.tbz
                This gave a warning that clamav-0.97.8 was required but clamav-0.97.6 was installed.

              -attempted to start DG which failed…....

              In particular, I had to edit dansguardian.conf and add entries for proxyexchange and pcontimeout, delete two files \tmp.dguardianipc and \tmp.dguardianurl.ipc - then DG would start.
              Also having changed dansguardian.conf manually, any change via the WebGui wipes these out.

              While the above was fine on a test server, to do the above on a live production server would be most unsatisfactory.

              For the moment, upping the Max Children to 1200 seems to have reduced the frequency of the errors.

              I'd be really grateful if anyone can tell me how to implement the patched version 2.12.0.6 (or later) from Marcelloc, avoiding the above issues, and at the same time preserve the groups/lists etc which have been heavily tailored.
              Alternatively I see that others have gone back to 2.12.0.2 - where can I find this and would installing this destroy the lists etc .

              1 Reply Last reply Reply Quote 0
              • F
                Fredb
                last edited by

                There is no coredump ? I don't know freebsd but with Linux you can put "ulimit -c unlimited" in the dg start script to generate
                Unfortunately there is no useful information with debug, now we need a core (exited on signal 11 (core dumped)) to know exactly what happen

                Soon we will open a new project, I 'm rewriting some codes now to fix another problem with 2.12.07.1 and freebsd

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

                  @neil:

                  In particular, I had to edit dansguardian.conf and add entries for proxyexchange and pcontimeout, delete two files \tmp.dguardianipc and \tmp.dguardianurl.ipc - then DG would start.
                  Also having changed dansguardian.conf manually, any change via the WebGui wipes these out.

                  While the above was fine on a test server, to do the above on a live production server would be most unsatisfactory.

                  See this post earlier in the same thread http://forum.pfsense.org/index.php/topic,61811.msg338588.html#msg338588

                  1 Reply Last reply Reply Quote 0
                  • N
                    neil
                    last edited by

                    Thanks - I'll look for the template and modify it.

                    I'm having trouble keeping track of which version of DG is actually installed and  running.
                    When I run pkg_delete prior to installing 2.12.0.6.sig11.tbz, the dg binary along with
                    a number of list files (etc) are not removed.
                    Then when I add 2.12.0.6.sig11, the size of the DG binary does not change.

                    However, if prior to installing 2.12.0.6..sig11.tbz, I mv dg to dg_bak, and then
                    run the install, the size of the DG binary is completely different.

                    So, is there a way of determining the version of the DG binary?

                    1 Reply Last reply Reply Quote 0
                    • F
                      Fredb
                      last edited by

                      @neil:

                      Thanks - I'll look for the template and modify it.

                      I'm having trouble keeping track of which version of DG is actually installed and  running.
                      When I run pkg_delete prior to installing 2.12.0.6.sig11.tbz, the dg binary along with
                      a number of list files (etc) are not removed.
                      Then when I add 2.12.0.6.sig11, the size of the DG binary does not change.

                      However, if prior to installing 2.12.0.6..sig11.tbz, I mv dg to dg_bak, and then
                      run the install, the size of the DG binary is completely different.

                      So, is there a way of determining the version of the DG binary?

                      It's a debug version, I think you don't need this
                      Marcelloc and me are working about a stable release for pfsense, I hope we found something
                      In worst situation sig11 still present until someone rewrite some parts of code for BSD like (no bug with Linux)

                      1 Reply Last reply Reply Quote 0
                      • N
                        neil
                        last edited by

                        Thanks I did not realise that this was a debug version - I have three sites that I have set up, each with up to 300 users.
                        Once the number of users gets above about 200, the Signal 11 errors occur about ever 2 -3 minutes, and the users
                        experience sluggish internet response.
                        I'll wait until an update package is available.
                        Could you send me an email when this occurs?  My email address is:
                        neil@darfield.school.nz.  Alternatively I'll monitor this thread.

                        Many thanks for your efforts.

                        1 Reply Last reply Reply Quote 0
                        • F
                          Fredb
                          last edited by

                          Hi all,

                          We have recently fixed some bugs with BSD, history here https://github.com/e2guardian/e2guardian/issues/8
                          Please, someone (should be an advanced user …) can try this new build https://github.com/e2guardian/e2guardian/archive/master.zip ?

                          You must rename the configurations files, like this /etc/dansguardian/dansguardian.conf -> /etc/e2guardian/e2guardian.conf
                          And rewrite your start script (dansguardian/e2guardian) alternatively you should also just rename the new binary to dansguardian

                          Keep in mind it's a working version, with some news features maybe unstable ...

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

                            HI Fredb,

                            Do you plan to push it to freebsd ports? It will be much easier to compile and pack it.

                            Thank's for all your work on it. dansguardian is still on 2.12.0.3 with no patches applied to ip.

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

                            Help a community developer! ;D

                            1 Reply Last reply Reply Quote 0
                            • F
                              Fredb
                              last edited by

                              @marcelloc:

                              HI Fredb,

                              Do you plan to push it to freebsd ports? It will be much easier to compile and pack it.

                              Thank's for all your work on it. dansguardian is still on 2.12.0.3 with no patches applied to ip.

                              Hi Marcelloc,

                              For the moment it's just an alpha release, I hope E2guardian will fix the BSD's problem
                              Why not, when we have a stable release candidate, but I have no knowledge about the Freebsd process

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

                                I'm willing to change the dg setup within pfSense in order to get this working. However, I don't have a freeBSD dev machine setup - any chance someone could compile it?

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

                                  Just figured out that the 2.12.0.6 version of DG that Marcello compiled does not have PCRE support… or at least that is my guess on the problem. It does not execute and of the regular expression functionality - such as URL regular expression modifications.

                                  Would anyone with a dev environment (Marcello?) be willing to compile the 2.12.0.6 or 2.12.0.7 version with PCRE? Or, for that matter, e2guardian (I'd be willing to mod the UI to get it working)? Thanks in advance!

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