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

    Problem with web uploads in new dansguardian 2.12.0.3

    Scheduled Pinned Locked Moved Cache/Proxy
    69 Posts 26 Posters 33.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.
    • T
      timthetortoise
      last edited by

      Oops, forgot about chmod +x! Good call!

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

        It will need to push a fix to freebsd ports before a new compile run.

        To have more then 1024 clients it also needs some changes on freebsd too.

        I'll try again to build a new pbi and put on my repo.

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

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • T
          timthetortoise
          last edited by

          As an addition to previous instructions, if you are doing automatic blacklist updates you will also want to overwrite /usr/pbi/dansguardian-xxx/sbin/dansguardian with this one, as that's what is used in the blacklist update script.

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

            @timthetortoise:

            As an addition to previous instructions, if you are doing automatic blacklist updates you will also want to overwrite /usr/pbi/dansguardian-xxx/sbin/dansguardian with this one, as that's what is used in the blacklist update script.

            OK… here's how my insall looks...

            dansguardian executable is /usr/pbi/dansguardian-amd64/sbin/dansguardian

            There is a "hard link"
                /usr/pbi/dansguardian-amd64/.sbin/dansguardian --> /usr/pbi/dansguardian-amd64/sbin
            There is a symbolic link
                /usr/local/sbin/dansguardian --> /usr/pbi/dansguardian-amd64/.sbin/dansguardian

            So... if I'm understanding this correctly, you really only need to replace one file...
            /usr/pbi/dansguardian-amd64/sbin/dansguardian

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

              OK… it seems that I was wrong...

              I have no idea what the file "/usr/pbi/dansguardian-amd64/.sbin/dansguardian" is... it is not a hard link. However it is a lot smaller than the dansguardian executable located in the "sbin" directory... AND, it seems to execute whatever you put in the "sbin" directory.

              In other words... it acts like a hard link - but it isn't. Anyone know what it is?

              Update: It appears that all installed packages have a ".sbin" directory and an executable in them that links back to the exe in the  "sbin" directory. Squid has the same thing... and the squid executable in ".sbin" is the same size as the dansguardian executable in ".sbin". Is this some kind of dynamically linked exe or something?

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

                I was just wondering if the "web upload" problem has been fixed in the package that is available from the pfSense repository? Does anyone know? Or do we still need to overwrite it with the one directly from Marcello? Thanks!

                1 Reply Last reply Reply Quote 0
                • C
                  cnd.fflv
                  last edited by

                  Till last week (I did fresh installation on Jan 20th) it had the same problem - issue was not fixed so far… :(

                  1 Reply Last reply Reply Quote 0
                  • D
                    dvosburg
                    last edited by

                    Here is the fix for 32-bit, applied today (01/28/2014) and it worked beautifully:

                    rm -rf /usr/local/etc/dansguardian
                    ln -s /usr/pbi/dansguardian-i386/etc/dansguardian /usr/local/etc/dansguardian
                    killall dansguardian
                    cd /usr/local/sbin
                    fetch http://e-sac.siteseguro.ws/pfsense/8/dansguardian
                    chmod +x /usr/local/sbin/dansguardian
                    /usr/local/etc/rc.d/dansguardian.sh start

                    1 Reply Last reply Reply Quote 0
                    • T
                      timthetortoise
                      last edited by

                      Please note that you actually want the executable in the /usr/pbi/dansguardian-xxx/sbin folder and not /usr/local/sbin. It is only actually launched in scripts from the /usr/pbi folder (and /usr/local/sbin/dansguardian should be a symlink to the PBI executable).

                      1 Reply Last reply Reply Quote 0
                      • C
                        cnd.fflv
                        last edited by

                        Hi there.

                        Actually, it seems like you do not need to delete /usr/local/etc/dansguardian and make a soft link after that.

                        I just replaced /usr/pbi/dansguardian-i386/sbin/dansguardian with provided one (fetch http://e-sac.siteseguro.ws/pfsense/8/dansguardian), made it executable, restart DG and it works fine. I am uploading this post after above operations.

                        PS. but I still did killall dansguardian before…

                        1 Reply Last reply Reply Quote 0
                        • C
                          cirkit
                          last edited by

                          @marcelloc:

                          I've fixed the code.  ;D

                          The patch 11 was malformed and broke up web upload check.

                          I did not pushed it to dansguardian devel or freebsd patch yet.

                          Test my dansguardian package and see if it works

                          I've also included the code to limit upload size(was not working on 2.12.0.2 AFAIK)

                          amd64
                          http://e-sac.siteseguro.ws/packages/amd64/8/All/dansguardian-2.12.0.3_1.tbz

                          i386
                          http://e-sac.siteseguro.ws/packages/8/All/dansguardian-2.12.0.3_1.tbz

                          Do not forget to kill dansguardian process before trying new packge binaries.

                          The above patched version worked perfect but since 9th april 2014 the available packages webpage within pfsense shows only 2.12.0.3_2 version which is partially broken and gives errors of contentscanner directories missing while booting…also start/ stop /restart of dansguardian from ssh via /usr/local/etc/rc.d/dansguardian.sh also reports errors..Pl restore the 2.12.0.3_1 link in the available packages so everything works fine again

                          Thanks

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

                            It seems that the problem with /usr/local/etc/rc.d/dansguardian.sh is that it is looking for "/usr/local/sbin/dansguardian" in the process name. However, the process name is being created with "/usr/pbi/dansguardian-amd64/sbin"…

                            Not sure why... A temporary workaround would be to edit the file /usr/local/pkg/dansguardian_rc.template and change the path in the variable "command" (line number 29)

                            Change
                              command="/usr/local/sbin/${name}"
                            to
                              command="/usr/pbi/dansguardian-amd64/sbin/${name}"

                            Note that if you are running the 32 bit version or "i386" you would put that instead of "amd64"... Anyway - make the above change and reboot. Script should work now.

                            Not having much luck figuring out the other startup errors...

                            1 Reply Last reply Reply Quote 0
                            • C
                              cirkit
                              last edited by

                              Yes after the changes the script worked to start / stop /restart dansguardian.
                              Couple of issues still remain unresolved i.e

                              1. During startup the package complains about missing exceptionviruslist files in /usr/pbi/dansguardian-amd64/etc/dansguardian/lists
                              2. Its also complains about missing clamd.conf file
                              3. Webupload banned

                              Pl help
                              cirkit

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

                                @cirkit:

                                1. During startup the package complains about missing exceptionviruslist files in /usr/pbi/dansguardian-amd64/etc/dansguardian/lists
                                2. Its also complains about missing clamd.conf file

                                I haven't figured these two out yet, but if I have time I will look over the weekend.

                                @cirkit:

                                1. Webupload banned

                                This can be fixed by overwriting the dansguardian executable with a different version… look through previos posts in this same thread.

                                Marcello - are you watching these posts? Any chance you could make changes quickly or simply roll back the version? Thanks!!!

                                1 Reply Last reply Reply Quote 0
                                • C
                                  cnd.fflv
                                  last edited by

                                  Hi guys…

                                  I need to make a new pfSense box, but can't get DansGuarding working properly - facing the same problem as cirkit.

                                  Will you please (at least for now) roll back the version? It worked fine with just replacing binary...

                                  Thanks.

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    doktornotor Banned
                                    last edited by

                                    @rjcrowder:

                                    Marcello - are you watching these posts? Any chance you could make changes quickly or simply roll back the version? Thanks!!!

                                    Not really sure what you are expecting from him since he cannot commit anything anyway. Another "improvement" in development…  ::)

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

                                      Wow! That's incredibly inconvenient. Why was that change made?

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        doktornotor Banned
                                        last edited by

                                        @rjcrowder:

                                        Why was that change made?

                                        You can ask at the relevant thread, already shared my thoughts there.  >:(

                                        1 Reply Last reply Reply Quote 0
                                        • C
                                          cnd.fflv
                                          last edited by

                                          Hi there.

                                          Any updates on these issues?

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

                                            @dvosburg:

                                            Here is the fix for 32-bit, applied today (01/28/2014) and it worked beautifully:

                                            rm -rf /usr/local/etc/dansguardian
                                            ln -s /usr/pbi/dansguardian-i386/etc/dansguardian /usr/local/etc/dansguardian
                                            killall dansguardian
                                            cd /usr/local/sbin
                                            fetch http://e-sac.siteseguro.ws/pfsense/8/dansguardian
                                            chmod +x /usr/local/sbin/dansguardian
                                            /usr/local/etc/rc.d/dansguardian.sh start

                                            Had the same problem as everyone else.  ssh-ed into my pfsense box.  Opened a shell.  Executed this exactly as entered above.  Works perfectly!

                                            Thanks dvosburg!

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