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

    Dansguardian package for 2.0

    Scheduled Pinned Locked Moved pfSense Packages
    492 Posts 51 Posters 469.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.
    • R
      rjcrowder
      last edited by

      @marcelloc:

      @rjcrowder:

      I couldn't figure out how you got VirtualBox bigger

      printscreens and paint/gimp  ;)

      @rjcrowder:

      In other words, the ps grepping for dans does not show anything.

      BTW. I noted that if you install the old version of squid, it starts before dans.

      I'm checking dansguardian boot process. I've fixed clamav startup error when enabled on dansguardian but I'll do more tests before publishing and I still have no idea why some systems are getting issues on boot and other don't.

      So… can't explain it, but DG seems to be starting up fine in the new virtual that I built. This is the first time I've seen it startup without needing to be restarted post-boot. All of that said, I do think that DG should start after squid and suspect that doing so would solve problems that people are having.

      I was also wondering if you have given any thought to changing how the GUI handles the "denied" page? The thing that is stopping me from fully switching to PFsense is the fact that the GUI doesn't properly support using an access denied URL and both the GUI and the bootup process insist on overwriting my manual DG bypass changes (see this threadhttp://forum.pfsense.org/index.php/topic,47856.30.html. Obviously I can create a script to restore my changes, but that's a pretty inconvenient hack…

      Just wondering... thanks!

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

        So I did a little more playing around so that I could be specific about what is necessary to make the bypass feature work correctly (without any overwrite issues)…

        1. In the "Report and Log" page...
          - Add the ability to specify the "accessdeniedaddress" value instead of just the HTML form content

        2. In the "Groups" page...
          - Add the ability to specify the "accessdeniedaddress"
          - Add the ability to specify the "bypasskey"

        That would basically do it...

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

          I've just pushed some fixes do improve dansguardian boot process and checks.

          On my tests, dansguardian startup time during boot process reduced to 20 seconds.

          Wait 15 minutes, reinstall the package, apply config and reboot.

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

          Help a community developer! ;D

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

            @marcelloc:

            I've just pushed some fixes do improve dansguardian boot process and checks.

            On my tests, dansguardian startup time during boot process reduced to 20 seconds.

            Wait 15 minutes, reinstall the package, apply config and reboot.

            Thanks for the updates… BTW. I made the changes to include 'bypasskey' and 'accessdeniedaddress' on the groups page. Turns out this was all I had to do in order to make my changes work (since the settings in dansguardianf1.conf override those that are set in dansguardian.conf). It was a pretty simple change, but you can drop me an email at randyj.crowder@gmail.com if you want me to send you the three files I  had to touch - they were dansguardian_groups.xml, dansguardian.conf.template, dansguardian.inc (in /usr/local/pkg).

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

              @rjcrowder:

              I made the changes to include 'bypasskey' and 'accessdeniedaddress' on the groups page.

              Push these changes via github https://github.com/bsdperimeter/pfsense-packages/tree/master/config/dansguardian.

              This way I can check changes and commit to the code.

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

              Help a community developer! ;D

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

                @marcelloc:

                @rjcrowder:

                I made the changes to include 'bypasskey' and 'accessdeniedaddress' on the groups page.

                Push these changes via github https://github.com/bsdperimeter/pfsense-packages/tree/master/config/dansguardian.

                This way I can check changes and commit to the code.

                OK…done.

                BTW. I was looking at the main "report and log" page (dansguardian_log.xml). The way it really should work is if you pick reporting level 3, then it enables the editing of the html template in the text box. Otherwise, it should enable a field for entering the accessdeniedaddress...  I was digging through the package directory and saw how to enable fields from a checkbox, but couldn't figure out how to enable/disable multiple fields based on the value selected from a list... Sorry for my ignorance.

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

                  @rjcrowder:

                  OK…done.

                  I'm seeing only one push on github.

                  https://github.com/rjcrowder/pfsense-packages/commit/aa9fbaf910c0e1a3465826f9f5483646ab6b819e

                  What happen if user do not select any custom error page? Your code force this option on dansguardianfx.conf.template

                  accessdeniedaddress = '{$dansguardian_groups['accessdeniedaddress']}'

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

                  Help a community developer! ;D

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

                    @marcelloc:

                    @rjcrowder:

                    OK…done.

                    I'm seeing only one push on github.

                    https://github.com/rjcrowder/pfsense-packages/commit/aa9fbaf910c0e1a3465826f9f5483646ab6b819e

                    What happen if user do not select any custom error page? Your code force this option on dansguardianfx.conf.template

                    accessdeniedaddress = '{$dansguardian_groups['accessdeniedaddress']}'

                    K… I'll try to figure out what I did wrong on pushing to github - first time I've used it.

                    As far as the accessdeniedaddress, it should be fine to not specify a URL as long as the reportinglevel is 3. That's why I also "uncommented" the reportinglevel field in dansguardianfx.conf.template.

                    Like I said on the main page, the UI should only allow you to specify the template content if you choose level 3. Since the template file is global, there is no need to put it on the group page.  However, the accessdeniedaddress field should be disabled on the group page if you pick reportinglevel 3 - since it would be ignored anyway.

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

                      @marcelloc:

                      @rjcrowder:

                      OK…done.

                      I'm seeing only one push on github.

                      https://github.com/rjcrowder/pfsense-packages/commit/aa9fbaf910c0e1a3465826f9f5483646ab6b819e

                      What happen if user do not select any custom error page? Your code force this option on dansguardianfx.conf.template

                      accessdeniedaddress = '{$dansguardian_groups['accessdeniedaddress']}'

                      I'll figure out what I did wrong… but all the changes are out there under different patches...

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

                        Hi all,

                        Just published version 1.5.3 with per user reporting level, accessdenied url and passkey.

                        rjcrowder,
                        I did not found your chages except that I've posted. Take a look if my changes works like yours.

                        att,
                        Marcello Coutinho

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

                        Help a community developer! ;D

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

                          That's exactly it. Thanks.

                          The only thing I did different was that I made the accessdeniedaddress field a "text area" (75 wide, 1 row) so that you could enter a long string and it would scroll…

                          Thanks a ton!

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

                            Can you test if startup issue is fixed too?

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

                            Help a community developer! ;D

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

                              @marcelloc:

                              Can you test if startup issue is fixed too?

                              I have had no problem at all on the last two releases (since you made Squid3 start first and DG last)… of course that's working out of a VM. I will let you know if I get a chance to reinstall physical.

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

                                @rjcrowder:

                                (since you made Squid3 start first and DG last)…

                                I didn't…

                                Maybe a install package order made this.

                                With this latest patch, Dansguardian startup time now is around 3 seconds  :)

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

                                Help a community developer! ;D

                                1 Reply Last reply Reply Quote 0
                                • E
                                  elemay
                                  last edited by

                                  any news on ssl filtering?

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

                                    @elemay:

                                    any news on ssl filtering?

                                    Same point yet.

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

                                    Help a community developer! ;D

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      dig1234
                                      last edited by

                                      @marcelloc:

                                      @rjcrowder:

                                      (since you made Squid3 start first and DG last)…

                                      I didn't…

                                      Maybe a install package order made this.

                                      With this latest patch, Dansguardian startup time now is around 3 seconds  :)

                                      Installing squid3 and latest dans package appears to have resolved my startup issues on my physical box. Thanks!

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

                                        @marcelloc:

                                        @rjcrowder:

                                        (since you made Squid3 start first and DG last)…

                                        I didn't…

                                        Maybe a install package order made this.

                                        With this latest patch, Dansguardian startup time now is around 3 seconds  :)

                                        Interesting… Glad it works. However, I'm slightly concerned that it may break in the future if there is not a way to explicitly control startup order... Guess I'll have to wait and see.

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

                                          @rjcrowder:

                                          Interesting… Glad it works. However, I'm slightly concerned that it may break in the future if there is not a way to explicitly control startup order... Guess I'll have to wait and see.

                                          I'm quite sure it will not break as all my working dansguardians has squid started after.

                                          Dansguardian does not crash or exit on the first squid test.

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

                                          Help a community developer! ;D

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

                                            @marcelloc:

                                            @rjcrowder:

                                            Interesting… Glad it works. However, I'm slightly concerned that it may break in the future if there is not a way to explicitly control startup order... Guess I'll have to wait and see.

                                            I'm quite sure it will not break as all my working dansguardians has squid started after.

                                            Dansguardian does not crash or exit on the first squid test.

                                            Reinstalled physical tonight… no problem.  Thanks for all the great work on this package!

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