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

    Dansguardian issues on 2.1 (service status and others)

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    27 Posts 6 Posters 13.1k 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.
    • M
      Macom2007
      last edited by

      Thx for your reply.

      I saved every gui tab. No luck so var. Why is DG trying to write to /var/log//access.log. I my dansguardian.conf the log path is /var/log/dansguardian/ ?

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

        @Macom2007:

        Why is DG trying to write to /var/log//access.log?

        Not sure. I have dansguardian working on 2.1 but I'll check it this week (If I have time  :))

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

        Help a community developer! ;D

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

          @Macom2007:

          Dansguardian does not start because a problem with the log file path (dansguardian missing in that path name). See console output :

          Error opening/creating log file. (check ownership and access rights).
          I am running as nobody and I am trying to open /var/log//access.log

          Any ideas ?

          Any news on this ?

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

            Current package version has 2.1 folder check but pbi package was built with pcre8.3.

            This pcre version breaks dansguardian.

            You can try on your install, but I'm not sure if it  will work.

            /usr/local/etc/rc.d/dansguardian.sh start

            kern.ipc.somaxconn: 16384 -> 16384
            kern.maxfiles: 131072 -> 131072
            kern.maxfilesperproc: 104856 -> 104856
            kern.threads.max_threads_per_proc: 4096 -> 4096
            Starting dansguardian.
            std::bad_alloc <= Pcre issue
            Error parsing the dansguardian.conf file or other DansGuardian configuration files

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

            Help a community developer! ;D

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

              Thx for your response. Your suggestion does not work. See output :

              /usr/local/etc/rc.d/dansguardian.sh start

              kern.ipc.somaxconn: 16384 -> 16384
              kern.maxfiles: 131072 -> 131072
              kern.maxfilesperproc: 104856 -> 104856
              kern.threads.max_threads_per_proc: 4096 -> 4096
              Starting dansguardian.
              Error opening/creating log file. (check ownership and access rights).
              I am running as nobody and I am trying to open /var/log/dansguardian/access.log

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

                did you saved dansguardian config on gui after package reinstall?

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

                Help a community developer! ;D

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

                  @marcelloc:

                  did you saved dansguardian config on gui after package reinstall?

                  Yes, I did. The error stays :-(

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

                    Uninstall and reinstall too? my setup went fine(except for pcre) with 2.1 package install.

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

                    Help a community developer! ;D

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

                      @marcelloc:

                      Uninstall and reinstall too? my setup went fine(except for pcre) with 2.1 package install.

                      I uninstalled, installed dansguardian and than i did this :

                      chown nobody:nobody /var/log

                      Now it is running, but i am not sure if this affects other packages ?

                      1 Reply Last reply Reply Quote 0
                      • L
                        Legion
                        last edited by

                        I have a similar issue. I just installed Dansguardian today to try and get it up and running. The service won't start. E.g.:

                        @marcelloc:

                        check and save all package gui tabs, this error shows a missing dansguardian dir on log file

                        /var/log//access.log should be /var/log/dansguardian/access.log

                        I checked and saved all package gui tabs and get this:

                        and similar directory path errors when pfSense is booting up.

                        On the Dansguardian General tab, the SSL section looks like this:

                        I set up certs for when I opened OpenVPN access to my box, so I can remotely admin it using a tablet. But nothing is set on Dansguardian. I'm pretty much trying default settings. E.g., here is my Groups setting:

                        Nothing about SSL filtering. Or am I looking in the wrong spot?

                        Also, as I save each Dansguardian tab starting from the left, the system log looks like this:

                        Until I get to the Access Control List and get the error in the second image that made me investigate further and prompted me to post this thread reply.

                        BTW, I have Dansguardian's built-in antivirus setting disabled since I already had Havp installed and running.

                        Any advice on how to get this working? It's not a showstopper for me - I can go back to SquidGuard/Squid/Havp but I wanted to try Squid/Dansguardian to see how it compared.

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

                          try to force file permissions alerted in logs and see if cert dir exists.

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

                          Help a community developer! ;D

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