The pfSense Store

Author Topic: Problem with web uploads in new dansguardian 2.12.0.3  (Read 15143 times)

0 Members and 1 Guest are viewing this topic.

Offline rjcrowder

  • Hero Member
  • *****
  • Posts: 644
  • Karma: +24/-0
    • View Profile
Problem with web uploads in new dansguardian 2.12.0.3
« on: February 03, 2013, 08:37:38 am »
Since upgrading to the new version of dansguardian, I've been unable to get anything that does a web based upload to work (instagram or faxorama for example). No matter what I set "maxuploadsize" to, uploads always fail with the denied message "Web upload is banned." I can get around it by entering an "exception" for each site, but that's not what i want... I want to be able to do uploads.

Any idea why this is not working? I've tried setting maxuploadsize to a high value and to -1 in both the general config and the config for my groups... but nothing seems to make any difference.

Thanks!

Offline rjcrowder

  • Hero Member
  • *****
  • Posts: 644
  • Karma: +24/-0
    • View Profile
Re: Problem with web uploads in new dansguardian 2.12.0.3
« Reply #1 on: February 03, 2013, 01:08:18 pm »
Just as some added information. I have confirmed that this is only an issue for the 2.12.0.3 version of dansguardian. I copied the dans executable from the packages that were created for 2.12.0.0 and 2.12.0.2 and both work just fine using the exact same config files - just copying over the executable.

My guess is that this bug (fairly confident it is a bug) has something to do with the "fix" relating to maxuploadsize that is noted in the 2.12.0.3 release notes...

Offline rjcrowder

  • Hero Member
  • *****
  • Posts: 644
  • Karma: +24/-0
    • View Profile
Re: Problem with web uploads in new dansguardian 2.12.0.3
« Reply #2 on: February 03, 2013, 01:55:46 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.

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 11537
  • Karma: +318/-3
    • View Profile
Re: Problem with web uploads in new dansguardian 2.12.0.3
« Reply #3 on: February 03, 2013, 03:56:04 pm »
Are you using package version 0.1.7_1?

Offline rjcrowder

  • Hero Member
  • *****
  • Posts: 644
  • Karma: +24/-0
    • View Profile
Re: Problem with web uploads in new dansguardian 2.12.0.3
« Reply #4 on: February 03, 2013, 07:18:14 pm »
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...

Are you using package version 0.1.7_1?

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 11537
  • Karma: +318/-3
    • View Profile
Re: Problem with web uploads in new dansguardian 2.12.0.3
« Reply #5 on: February 04, 2013, 03:09:36 pm »
It's not working even if you set it to -1 on group options?

Online Asterix

  • Hero Member
  • *****
  • Posts: 694
  • Karma: +7/-0
    • View Profile
Re: Problem with web uploads in new dansguardian 2.12.0.3
« Reply #6 on: February 04, 2013, 03:18:10 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

Online Asterix

  • Hero Member
  • *****
  • Posts: 694
  • Karma: +7/-0
    • View Profile
Re: Problem with web uploads in new dansguardian 2.12.0.3
« Reply #7 on: February 04, 2013, 03:19:02 pm »
It's not working even if you set it to -1 on group options?

Tried that already. Does not work.

Offline rjcrowder

  • Hero Member
  • *****
  • Posts: 644
  • Karma: +24/-0
    • View Profile
Re: Problem with web uploads in new dansguardian 2.12.0.3
« Reply #8 on: February 04, 2013, 04:06:24 pm »
Agreed.... it does not work with -1 in the group options... I also tried setting it to a value... doesn't work.

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

Tried that already. Does not work.

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 11537
  • Karma: +318/-3
    • View Profile
Re: Problem with web uploads in new dansguardian 2.12.0.3
« Reply #9 on: February 05, 2013, 10:24:19 pm »
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.

Offline rjcrowder

  • Hero Member
  • *****
  • Posts: 644
  • Karma: +24/-0
    • View Profile
Re: Problem with web uploads in new dansguardian 2.12.0.3
« Reply #10 on: February 06, 2013, 10:40:45 am »
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...

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.

Offline samham

  • Jr. Member
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Re: Problem with web uploads in new dansguardian 2.12.0.3
« Reply #11 on: February 06, 2013, 02:11:55 pm »
Marcello when will you push the patch?

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 11537
  • Karma: +318/-3
    • View Profile
Re: Problem with web uploads in new dansguardian 2.12.0.3
« Reply #12 on: February 06, 2013, 02:29:22 pm »
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.

Offline rjcrowder

  • Hero Member
  • *****
  • Posts: 644
  • Karma: +24/-0
    • View Profile
Re: Problem with web uploads in new dansguardian 2.12.0.3
« Reply #13 on: February 07, 2013, 09:14:10 pm »
Seems to work. Thanks!

Offline cirkit

  • Jr. Member
  • **
  • Posts: 39
  • Karma: +1/-0
    • View Profile
Re: Problem with web uploads in new dansguardian 2.12.0.3
« Reply #14 on: February 07, 2013, 09:54:58 pm »
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?