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

    Dansguardian - Web upload is banned

    Scheduled Pinned Locked Moved pfSense Packages
    30 Posts 7 Posters 9.8k 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.
    • A Offline
      asterix
      last edited by

      getting this error after the fetch

      php: /pkg_edit.php: The command '/usr/local/etc/rc.d/dansguardian.sh start' returned exit code '1', the output was 'kern.ipc.somaxconn: 16384 -> 16384 kern.maxfiles: 131072 -> 131072 kern.maxfilesperproc: 104856 -> 104856 kern.threads.max_threads_per_proc: 4096 -> 4096 Starting dansguardian. /usr/local/sbin/dansguardian: 1: Syntax error: ")" unexpected /usr/local/etc/rc.d/dansguardian.sh: WARNING: failed to start dansguardian'

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

        Can you check if the downloaded file is not corrupt, with dansguardian -v?

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

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • A Offline
          asterix
          last edited by

          I tried the fetch multiple times. Same result.

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

            what you get with dansguardian -v

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

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • K Offline
              kejianshi
              last edited by

              "Every time you reinstall the package, you need to manual update the binary too."

              Thats quite the little bug.  Thats the sort of thing I might put on the main menu at the top in big bold red blinky letters so that everyone sees it first thing, along with a handy link to a set of simple instructions.

              1 Reply Last reply Reply Quote 0
              • A Offline
                asterix
                last edited by

                dansguardian -v
                /usr/local/sbin/dansguardian: Exec format error. Binary file not executable.

                This is the process I followed.
                killall dansguardian
                cd /usr/local/sbin
                fetch http://e-sac.siteseguro.ws/pfsense/8/amd64/dansguardian

                1 Reply Last reply Reply Quote 0
                • A Offline
                  asterix
                  last edited by

                  marcelloc .. any update on this?

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

                    What update? You are trying to run amd64 file on i386?

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      asterix
                      last edited by

                      @doktornotor:

                      What update? You are trying to run amd64 file on i386?

                      Please don't make this thread longer than it needs to. Why the hell will I be trying to run amd64 on i386? Please read from the first page before commenting something which makes no sense.

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

                        @asterix:

                        Please don't make this thread longer than it needs to. Why the hell will I be trying to run amd64 on i386? Please read from the first page before commenting something which makes no sense.

                        Pardon my ignorance, but "/usr/local/sbin/dansguardian: Exec format error. Binary file not executable." suggests exactly what I said… Otherwise, provide some info, such as

                        file /usr/local/sbin/dansguardian
                        ls -la /usr/local/sbin/dansguardian
                        uname -a
                        
                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          asterix
                          last edited by

                          file /usr/local/sbin/dansguardian
                          /usr/local/sbin/dansguardian: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.3, not stripped

                          ls -la /usr/local/sbin/dansguardian
                          -r-xr-xr-x  1 root  wheel  994216 Feb  7 23:07 /usr/local/sbin/dansguardian

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

                            You omitted the uname -a intentionally?

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              asterix
                              last edited by

                              root@snapshots-8_1-amd64.builders.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.8  amd64

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

                                @asterix:

                                root@snapshots-8_1-amd64.builders.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.8  amd64

                                You'd probably have more luck with running that on 2.1 for which it's been apparently compiled…

                                /usr/local/sbin/dansguardian: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.3, not stripped

                                1 Reply Last reply Reply Quote 0
                                • A Offline
                                  asterix
                                  last edited by

                                  I wish I could.. but clamd does not work on 2.1. Have tried many times and need content scanning on browsing.

                                  Almost everything I need works great on 2.1 .. but only dansguardian clamd fails to work.

                                  Anyways, I rebuilt the box again late last week.. looks like the download worked this time. Will have to stay on 2.0.3 till marcelloc works on the dansguardian package to run along with clamd function.

                                  1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    PepperdotNet
                                    last edited by

                                    It's been 10 months since the last activity on this thread. Just checking that:

                                    1. This is still the correct procedure, on 2.1.2 with the current Dansguardian, to fix the banned uploads?

                                    2. The huge difference in the size of the replacement binary (971K) vs the original one (11.1K) is of no concern?

                                    (actually, I replaced the file in /usr/pbi/dansguardian-amd64/.sbin)

                                    [just noticed, this is my first post, though I've been a member here a long time]

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