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

    Dansguardian broken - can't get alternate repository working

    Scheduled Pinned Locked Moved pfSense Packages
    20 Posts 4 Posters 4.4k 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

      There have been several threads outlining a number of things that are broken in the new dansguardian package… As a result, I've been trying to get one of two options working:
      1.) either install an already downloaded package (from Marcello's repository) - or...
      2.) use Marcello's repository to install a previous version

      I know that Marcello has his own repository located at http://e-sac.siteseguro.ws/packages/amd64/8/All/ (from another thread). That repository has multiple versions of the Dansguardian pacakge.  But...I can't seem to get it working using pkg_mgr_settings.php. Every time I enter that address and try to go to the list of packages, the GUI tells me it can't communicate with the repository...

      Anyone have any ideas? If we could get that working - or figure out how to install a package from a file - we could install the older DG package version...

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

        What is broken?

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

          @mschiek01:

          What is broken?

          With Dansguardian?
          1.) It's essentially missing all of the pieces for the content scanners
          2.) It has a small bug in the code that creates the startup/shutdown script which makes it not work…

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

            Have you tried this?

            *** FOR amd64 ***

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

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

              Unless I'm missing something, all that would do is fetch the dansguardian executable to the sbin directory. There are multiple executables and config files that are missing from the overall package…

              So... what I need to do is fetch the entire package (.tbz of a different version) from Marcello's site and then install it.

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

                I am using that very executable on an amd64 box with the latest 2.1.2 without any problems.

                You could also try
                pkg_add -r http://e-sac.siteseguro.ws/packages/amd64/8/All/dans…..............

                over the present install.

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

                  Isn't pkg_add just for freeBSD packages? It would just install the executable…

                  Like I said, I know the dansguardian executable will work. The issue is with the rest of the pfSense pacakge. It doesn't include several other executables and config files that are necessary for the content scanning part of the dansguardian package to work. It has been broken for about a week - when the package version was updated to 2.12.0.3_2 - worked fine before that.

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

                    This should work for you.  I just tried it on one of my boxes. Again this for a 64bit box.

                    1. Install the broken package with the package manager.

                    2. from the command line "pkg_info" you will see dansguardian 2.12.0.3_2 is installed.

                    3. from the command line "fetch http://files.pfsense.org/packages/amd64/8/All/dansguardian-2.12.0.3-amd64.pbi"

                    4. from the command line "pbi_add –no-checksig -f dansguardian-2.12.0.3-amd64.pbi"

                    5. from the command line "pkg_info" you will now see dansguardian-2.12.0.3_1 is installed.

                    6. reboot.

                    7 from the command line "/usr/local/bin/php /usr/local/www/dansguardian.php fetch_blacklist"  download and reapply blacklist.

                    8 go back through and resave each configuration page.

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

                      Very nice… will give it a shot...

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

                        Do you have postfix and mailscanner installed?  If so you will have to do a couple of extra steps.

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

                          No…

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

                            OK… first of all - thanks a ton. What I didn't know was the pbi_ commands!!!  :D

                            Seems to work with a few minor changes.

                            @mschiek01:

                            2. from the command line "pkg_info" you will see dansguardian 2.12.0.3_2 is installed.

                            "pbi_info" instead of "pkg_info"

                            @mschiek01:

                            7 from the command line "/usr/local/bin/php /usr/local/www/dansguardian.php fetch_blacklist"  download and reapply blacklist.

                            Since the new version of the package doesn't have a blacklist url set, before downloading you will need to set it. The one I use is http://www.shallalist.de/Downloads/shallalist.tar.gz

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

                              No problem glad I could help.  :)

                              1 Reply Last reply Reply Quote 0
                              • P
                                percyiii
                                last edited by

                                Ok I do this.. And it works… But I gt the "Web Upload is banned" back......

                                Any ideas..

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

                                  The only reason you would have the "web upload banned" back is if you've somehow gotten the wrong version of the executable. Check the dates and sizes on your dansguardian exe files. You can directly extract the proper exe from the PBI file and copy it over the wrong one…

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    percyiii
                                    last edited by

                                    Well;
                                    Tired to fix it with this.
                                    https://forum.pfsense.org/index.php?topic=58442.msg409913#msg409913.
                                    Then Dans breaks..
                                    So I did what you said and found the executable from one I had not upgraded that I had ran the above on..
                                    And the exe was like a week earlier..
                                    And I used that and it now is working..
                                    Not sure What the difference was..
                                    Thx

                                    @rjcrowder:

                                    The only reason you would have the "web upload banned" back is if you've somehow gotten the wrong version of the executable. Check the dates and sizes on your dansguardian exe files. You can directly extract the proper exe from the PBI file and copy it over the wrong one…

                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      percyiii
                                      last edited by

                                      Ok,,
                                      Have another box…
                                      It was working fine.. I upgraded and the web upload broke..
                                      I uninstalled re-installed tried different versions of the executable...
                                      I finally deleted every dans file I could find reinstalled... It works but still not web upload..
                                      Not sure why this happens.

                                      @rjcrowder:

                                      The only reason you would have the "web upload banned" back is if you've somehow gotten the wrong version of the executable. Check the dates and sizes on your dansguardian exe files. You can directly extract the proper exe from the PBI file and copy it over the wrong one…

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

                                        @percyiii:

                                        I finally deleted every dans file I could find reinstalled… It works but still not web upload..
                                        Not sure why this happens.

                                        Not sure what to tell you other than the fact that the web upload issue is something that was broken in a specific version of the dansguardian executable… I don't see how you could have the problem unless you have an exe version that was compiled from the bad code. I'd check and make sure you don't have multiple versions sitting somewhere on disk (find / -name dansguardian)

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          percyiii
                                          last edited by

                                          As I noted in my post…
                                          I removed the install.... Deleted every single file I could find...
                                          Re-installed .... So the only files what are there came with the install......
                                          And works fine except for we upload..

                                          ..

                                          Not sure what to tell you other than the fact that the web upload issue is something that was broken in a specific version of the dansguardian executable... I don't see how you could have the problem unless you have an exe version that was compiled from the bad code. I'd check and make sure you don't have multiple versions sitting somewhere on disk (find / -name dansguardian)

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

                                            @mschiek01:

                                            This should work for you.  I just tried it on one of my boxes. Again this for a 64bit box.

                                            1. Install the broken package with the package manager.

                                            2. from the command line "pkg_info" you will see dansguardian 2.12.0.3_2 is installed.

                                            3. from the command line "fetch http://files.pfsense.org/packages/amd64/8/All/dansguardian-2.12.0.3-amd64.pbi"

                                            4. from the command line "pbi_add –no-checksig -f dansguardian-2.12.0.3-amd64.pbi"

                                            5. from the command line "pkg_info" you will now see dansguardian-2.12.0.3_1 is installed.

                                            6. reboot.

                                            7 from the command line "/usr/local/bin/php /usr/local/www/dansguardian.php fetch_blacklist"  download and reapply blacklist.

                                            8 go back through and resave each configuration page.

                                            Ever since doing this, Dansguardian no longer shows up on my pfSense GUI as a service.  Any idea why?  I've tried uninstalling the package and re-installing.  The process looks to be completing successfully, but it doesn't show up.

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