Dansguardian broken - can't get alternate repository working


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


  • What is broken?


  • @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…


  • Have you tried this?

    *** FOR amd64 ***

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


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


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


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


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


  • Very nice… will give it a shot...


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


  • No…


  • 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


  • No problem glad I could help.  :)


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

    Any ideas..


  • 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…


  • 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…


  • 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…


  • @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)


  • 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)


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