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

    Howto: install Dansguardian on pfSense 2.0

    Scheduled Pinned Locked Moved Documentation
    28 Posts 9 Posters 90.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.
    • marcellocM
      marcelloc
      last edited by

      I can help in dansguardian package since i finish mailscanner package.

      Do you have 32 and 64 bits version or compilation args you used?

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

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • Z
        ZGruk
        last edited by

        The files I posted are from a 32-bit version. I didn't use any compilation arguments. Keep in mind, however, that I didn't compile it in pfSense. I compiled it in FreeBSD and copied the resulting files to pfSense.

        –-------------------

        If you're interested in working on this, we should probably open a thread in the Packages section of the forum.

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

          package topic for dansguardian

          http://forum.pfsense.org/index.php/topic,43786.msg226796.html#msg226796

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

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • G
            gadams65
            last edited by

            First I need to thank whoever ported Dansguardian to pfSense.  I had been using Dansguardian on IPCop for years and pfSense is such a superior firewall that I was hoping someday that Dansguardian would get ported.

            I have created the three NAT rules as mentioned in this post, but it would appear that the https rule is not working.  It blocks all https traffic when I try to go through the firewall transparently without configuring my browser to use a proxy.  If I configure my browser to use a proxy, https filtering seems to work.  My preference is of course to run transparently.  Any ideas?

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

              Did you installed dansguardian package for pfsense?

              This guide is to install it by hand with no gui.

              I'm not sure if https can be used in transparente mode.

              proxy WPAD/PAC/auto configuration using dns+dhcp is the best way to configure browsers in a "transparent" way

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

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • G
                gadams65
                last edited by

                Yes I did install the package.  Even with installing through the package I had to add the HTTP and 3128 NAT rules for it to work though.

                Okay I'll try forcing browsers to autoconfig using dns+dhcp as you recommend.  Thank you!!

                1 Reply Last reply Reply Quote 0
                • V
                  valshare
                  last edited by

                  @gadams65:

                  Okay I'll try forcing browsers to autoconfig using dns+dhcp as you recommend.  Thank you!!

                  Hi gadams65, any news about https and transparent mode?

                  REgards, Valle

                  1 Reply Last reply Reply Quote 0
                  • K
                    kryptos
                    last edited by

                    Thanks for this howto I now have a working filtering. I have a question where is exception IP list located? I tried looking the menu I don't find any. Does it mean I need to configure it manually?

                    Thanks
                    Rocel

                    1 Reply Last reply Reply Quote 0
                    • K
                      kryptos
                      last edited by

                      Thanks for this howto I now have a working filtering. I have a question where is exception IP list located? I tried looking the menu I don't find any. Does it mean I need to configure it manually?

                      Thanks
                      Rocel

                      1 Reply Last reply Reply Quote 0
                      • K
                        kryptos
                        last edited by

                        Thanks for this howto I now have a working filtering. I have a question where is exception IP list located? I tried looking the menu I don't find any. Does it mean I need to configure it manually?

                        Thanks
                        Rocel

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

                          @kryptos:

                          Where is exception IP list located?

                          The file location is /usr/local/etc/dansguardian/lists/exceptioniplist.

                          I've checked and it's really missing on gui, I'll include it.

                          att,
                          Marcello Coutinho

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

                          Help a community developer! ;D

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

                            version 0.1.5.4 of dansguardian package includes exceptioniplist missing field.

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

                            Help a community developer! ;D

                            1 Reply Last reply Reply Quote 0
                            • H
                              hf
                              last edited by

                              Hi, I had DG and Squid running perfectly till….... I changed the reporting to "full reporting" then everything went down. I wasn't able to restart DG from the service manager and reboot, so i tried to reinstall the pkg. and Squid went down so reinstalled it as well, So now somehow both don't restart. any help would be appreciated.
                              TIA

                              P.S. in general DG doesn't start from the pkg menu.

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

                                Services tab on 2.0.1 needs a Fix.

                                Are you using squid3? If so, reinstall it after dansguadian.

                                Try to start dansguardian on console to check if it's returning errors.

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

                                Help a community developer! ;D

                                1 Reply Last reply Reply Quote 0
                                • H
                                  hf
                                  last edited by

                                  Thanks, I have installed version 2. I looked into the system logs and ..

                                  root: /usr/local/etc/rc.d/dansguardian.sh: WARNING: failed to start dansguardian

                                  php: /pkg_edit.php: The command '/usr/local/etc/rc.d/dansguardian.sh start' returned exit code '1', the output was 'kern.ipc.somaxconn: 16384 -> 16384 kern.maxfiles: 131072 -> 131072 kern.maxfilesperproc: 104856 -> 104856 kern.threads.max_threads_per_proc: 4096 -> 4096 Starting dansguardian. Error reading file /usr/local/etc/dansguardian/lists/blacklists/artnudes/urls: No such file or directory Error reading file /usr/local/etc/dansguardian/lists/blacklists/artnudes/urls: No such file or directory Error opening file: /usr/local/etc/dansguardian/lists/blacklists/artnudes/urls Error opening bannedurllist Error opening filter group config: /usr/local/etc/dansguardian/dansguardianf1.conf Error reading filter group conf file(s). Error parsing the dansguardian.conf file or other DansGuardian configuration files /usr/local/etc/rc.d/dansguardian.sh: WARNING: failed to start dansguardian'

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

                                    check all config tabs, startup script is looking for files that was not created by package config.

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

                                    Help a community developer! ;D

                                    1 Reply Last reply Reply Quote 0
                                    • H
                                      hf
                                      last edited by

                                      Thanks, so far, so good

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

                                        It's on IP tab  ;)

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

                                        Help a community developer! ;D

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

                                          Hello,
                                          I followed the instruction on how to do the setup. All fine and all works.
                                          I get a issue with squid not starting so I reinstalled it. Both DG and squid start.

                                          But nothing is blocked. what am I missing?

                                          Thanks
                                          Iain

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

                                            @luxmoggy:

                                            But nothing is blocked. what am I missing?

                                            what you get on system logs?

                                            did you tried to stop dansguardian and start again?

                                            Are you using 2.12.0.3 or 2.12.0.3_1?

                                            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.