• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.9k 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.
  • R
    rjcrowder
    last edited by Feb 3, 2013, 7:55 PM

    Looked at the "diff" file for Patch 11 (the dg patch relating to maxuploadsize) and it seems obvious that something is amiss… I'm not sure why FOptionContainer.cpp isn't picking up the maxuploadsize from my group config (dansguardianf1.conf) file but it definitely is not...

    BTW Marcelo, if you can get 2.12.0.3 working the diff makes it clear that you can remove maxuploadsize from the dansguardian.conf (and the limits screen). The code to read it in OptionContainer.cpp was removed!

    As for me, I'm currently using the 2.12.0.2 dansguardian executable - although I'm a little nervous about the "memory leaks" that were supposedly fixed in 2.12.0.3.

    1 Reply Last reply Reply Quote 0
    • M
      marcelloc
      last edited by Feb 3, 2013, 9:56 PM

      Are you using package version 0.1.7_1?

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

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • R
        rjcrowder
        last edited by Feb 4, 2013, 1:18 AM

        Yes. 0.1.7_1  Even tried uninstall/reinstall several times. Per my previous messages, I've tried every possible combination I can think of for setting the maxuploadsize value in both the limit and group settings. I also checked that the GUI was setting maxuploadsize correctly in dansguardian.conf and dansguardianf1.conf. Bottom line… everything is working fine from the GUI package perspective, but the 2.12.0.3 dansguardian executable doesn't seem to read the setting - no matter what I try. If I simply swap the dansguardian executable for the 2.12.0.2 or 2.12.0.0 version, everything works fine.

        Also... like I said in my previous post, when/if we actually get 2.12.0.3 working - you can see from the patch diff file that the maxuploadsize setting in dansguardian.conf is no longer used. You could remove it from the "limits" page...

        @marcelloc:

        Are you using package version 0.1.7_1?

        1 Reply Last reply Reply Quote 0
        • M
          marcelloc
          last edited by Feb 4, 2013, 9:09 PM

          It's not working even if you set it to -1 on group options?

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

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • A
            asterix
            last edited by Feb 4, 2013, 9:18 PM

            I had said the same last week when I installed the newly released version.

            http://forum.pfsense.org/index.php/topic,43786.msg312070.html#msg312070

            1 Reply Last reply Reply Quote 0
            • A
              asterix
              last edited by Feb 4, 2013, 9:19 PM

              @marcelloc:

              It's not working even if you set it to -1 on group options?

              Tried that already. Does not work.

              1 Reply Last reply Reply Quote 0
              • R
                rjcrowder
                last edited by Feb 4, 2013, 10:06 PM

                Agreed…. it does not work with -1 in the group options... I also tried setting it to a value... doesn't work.

                @asterix:

                @marcelloc:

                It's not working even if you set it to -1 on group options?

                Tried that already. Does not work.

                1 Reply Last reply Reply Quote 0
                • M
                  marcelloc
                  last edited by Feb 6, 2013, 4:24 AM

                  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.

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

                  Help a community developer! ;D

                  1 Reply Last reply Reply Quote 0
                  • R
                    rjcrowder
                    last edited by Feb 6, 2013, 4:40 PM

                    Thanks Marcello… that's awesome!  I'm currently traveling - so I won't be able to check it till Friday. Will let you know as soon as I do though...

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • S
                      samham
                      last edited by Feb 6, 2013, 8:11 PM

                      Marcello when will you push the patch?

                      1 Reply Last reply Reply Quote 0
                      • M
                        marcelloc
                        last edited by Feb 6, 2013, 8:29 PM

                        @samham:

                        Marcello when will you push the patch?

                        I've pushed it to dansguardian sourceforge project.

                        But not for freebsd ports.

                        I'm waiting feedbacks to see if there are other bugs that I can help to fix.

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

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • R
                          rjcrowder
                          last edited by Feb 8, 2013, 3:14 AM

                          Seems to work. Thanks!

                          1 Reply Last reply Reply Quote 0
                          • C
                            cirkit
                            last edited by Feb 8, 2013, 3:54 AM

                            I am a noob to freebsd but faced the same problem above, I downlaoded the new package (modified) extracted dansguardian from sbin and pasted it in sbin of my pfsense box and it worked
                            Is it necessary to replace the other files?

                            1 Reply Last reply Reply Quote 0
                            • M
                              marcelloc
                              last edited by Feb 8, 2013, 4:12 AM Feb 8, 2013, 4:03 AM

                              no, just dansguardian bin.

                              I've uploaded dansguardian bin to my personal repo :)

                              i386
                              killall dansguardian
                              cd /usr/local/sbin
                              fetch http://e-sac.siteseguro.ws/pfsense/8/dansguardian

                              amd64
                              killall dansguardian
                              cd /usr/local/sbin
                              fetch http://e-sac.siteseguro.ws/pfsense/8/amd64/dansguardian

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

                              Help a community developer! ;D

                              1 Reply Last reply Reply Quote 0
                              • D
                                dig1234
                                last edited by Mar 22, 2013, 8:14 PM

                                patched binary worked for me, Thanks!

                                1 Reply Last reply Reply Quote 0
                                • A
                                  awsiemieniec
                                  last edited by Mar 27, 2013, 6:45 PM

                                  ditto on the fix, thanks!  ;D

                                  1 Reply Last reply Reply Quote 0
                                  • N
                                    neil
                                    last edited by Mar 28, 2013, 9:17 PM Mar 28, 2013, 9:13 PM

                                    I have just set up Dansguardian for a large site and have experienced the same "web upload is banned" as reported in this thread.

                                    Package Manager shows 2.12.0.3pkg v.0.1.7_3.

                                    I've tried downloading the patched binary from http://e-sac.sitesguro.ws/pfsense/8/amd64/dansguardian
                                    after killing dansguardian.
                                    When I try to start the new binary I get the message:

                                    /usr/local/sbin/dansguardian: 1: Syntax error: ")" unexpected
                                    ./dansguardian.sh WARNING: failed to start dansguardian

                                    Are you able to help me here, and in particular what steps do I need to follow to resolve the "web upload is banned" problem - thanks

                                    PS.  to be able to save this post, I had to put an exception for forum.pfsense.org into the sites exception list, to avoid having this post blocked by the same error for which I am seeking help!

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      marcelloc
                                      last edited by Mar 28, 2013, 9:27 PM

                                      @neil:

                                      I've tried downloading the patched binary from http://e-sac.sitesguro.ws/pfsense/8/amd64/dansguardian
                                      after killing dansguardian.
                                      When I try to start the new binary I get the message:

                                      /usr/local/sbin/dansguardian: 1: Syntax error: ")" unexpected
                                      ./dansguardian.sh WARNING: failed to start dansguardian

                                      If you copied only dansguardian binary, it should start as it does not touch dansguardian.sh file.

                                      try to save dansguardian config again to recreate startup script.

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

                                      Help a community developer! ;D

                                      1 Reply Last reply Reply Quote 0
                                      • N
                                        neil
                                        last edited by Mar 28, 2013, 10:04 PM

                                        Thanks for the quick reply - I did as you suggested, made a change in DG/PFsense, and saved the change - presumably this recreates the dansguardian.sh script - unfortunately no change.

                                        Just to recap all I did was:

                                        1. killall dansguardian
                                        2. cd /usr/local/sbin
                                        3. mv dansguardian dansguardian.orig (ie backed up the old version)
                                        4. fetch https://e-sac….....etc
                                        This retrieved a file of size 994216 dated feb 8.
                                        The permissions on this file did not match those on the old version and in particular were not executable.
                                        So I typed chmod 555 dansguardian and the permissions then matched (ie -r-xr-xr-x)
                                        5. cd /usr/local/etc/rc.d
                                        6. ./dansguardian.sh start

                                        This resulted in the error I reported.

                                        When I copy the original dansguardian binary back again, the startup script runs without any error.

                                        Any further thoughts?

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          marcelloc
                                          last edited by Mar 28, 2013, 10:14 PM

                                          @neil:

                                          Any further thoughts?

                                          No. :( Except for the mv dansguardian dansguardian.orig I've did it again here and it started up fine.

                                          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.
                                            This community forum collects and processes your personal information.
                                            consent.not_received