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 466.6k 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.
    • A
      abnz
      last edited by

      @Cino:

      @marcelloc:

      @Cino:

      i made a quick rc.d script to start dansguardian on startup..

      You did a second startup or changed current script?

      Can you check if dansguardian default rc script is on the same folder and what permission it has?

      I didn't change the 'dansguardian' script, permissions are 755. I created 'dansguardian.sh' which basically run's '/usr/local/sbin/dansguardian -Q'

      I am having the same error, dansguardian[25631]: Error connecting to proxy.

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

      -rwxr-xr-x  1 root  wheel  895 Apr  4 19:31 dansguardian

      The service appears to be running but just not working.

      run's '/usr/local/sbin/dansguardian -Q' makes no difference, neither a reboot.

      Proxy address is 127.0.0.1 port is 3128.

      squid works fine, dansguardian just doesn't seem to bind.

      I tried uninstalling both squid and dansguardian, deleting conf files, reinstalling squid and testing it.

      I then installed dansguardian and still doesnt work.

      I suspect its because I installed dansguardian before squid and some config got screwed.  I have not deleted this file before reinstalling?

      Appreciate any suggestions.

      1 Reply Last reply Reply Quote 0
      • C
        Cino
        last edited by

        its not the same error as I was having… I wasn't getting an error at all... Nothing in my logs.

        What port did you setup dansguardian on?

        Is squid setup to run on loopback or LAN interface?

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

          @wheelz:

          This seems to indicate that other have this working.  I'm wondering if it has to do with that multiple authplugin bug… I'll see what I can dig up.

          Try to run dansguardian on console to see if there is any running time/config erros

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

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

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • W
            wheelz
            last edited by

            So it looks like the dansguardian package is forcing 2.7.STABLE9 of squid.  I had installed squid-reverse and that loads 3.1.19.  After Dansguardian it reverts it to the older version.  Is there a way to make it not override existing squid versions or does the dansguardian package have to be updated with the newer squid version?

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

              I could not make this on package, dansguardian force squid install.

              What I'm trying to do is compile dansguardian using squid3 as a dependence.

              For now, reinstall squid-reverse after you install dansguardian.

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

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • W
                wheelz
                last edited by

                Even after a reinstall it still has the version 2.7.STABLE9.  I'm guessing both versions are installed but the older version is in the path so it gets started (maybe)?  ???

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

                  Since i have Dansguardian running, i cant access iTunes anymore. I read i other places that Apples URIs are invalid because they end with a dot (.) Is there a way to allow this URIs ?

                  See also :

                  http://forums.contribs.org/index.php?topic=48337.0

                  This may be a patch :

                  http://rmore.net/wp-content/uploads/2010/04/iTunes.patch

                  1 Reply Last reply Reply Quote 0
                  • A
                    abnz
                    last edited by

                    @Cino:

                    its not the same error as I was having… I wasn't getting an error at all... Nothing in my logs.

                    What port did you setup dansguardian on?

                    Is squid setup to run on loopback or LAN interface?

                    Dansguardian is on 8080 and squid on LAN interface 3128 default port.

                    1 Reply Last reply Reply Quote 0
                    • A
                      abnz
                      last edited by

                      @marcelloc:

                      @wheelz:

                      This seems to indicate that other have this working.  I'm wondering if it has to do with that multiple authplugin bug… I'll see what I can dig up.

                      Try to run dansguardian on console to see if there is any running time/config erros

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

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

                      kern.ipc.somaxconn: 16384 -> 16384
                      kern.maxfiles: 131072 -> 131072
                      kern.maxfilesperproc: 104856 -> 104856
                      kern.threads.max_threads_per_proc: 4096 -> 4096
                      dansguardian already running? (pid=6485).

                      There is no problem with it running, it seems stable, just not working.

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

                        The way I use is squid on loopback interface port 3128 and dansguardian on 8080 sending to 127.0.0.1 port 3128.

                        Check squid cache log to see if there's errors or warnings.

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

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • C
                          Cino
                          last edited by

                          @abnz:

                          @Cino:

                          its not the same error as I was having… I wasn't getting an error at all... Nothing in my logs.

                          What port did you setup dansguardian on?

                          Is squid setup to run on loopback or LAN interface?

                          Dansguardian is on 8080 and squid on LAN interface 3128 default port.

                          I think the problem I have, dansguardian is starting before squid. I have squid listening to LAN(IPv4 and IPv6) and loopback. Dansguardian is on LAN 8080 and directs its traffic to squid loopback 3128

                          1 Reply Last reply Reply Quote 0
                          • W
                            wheelz
                            last edited by

                            SUCCESS!!  ;D  After much trial and error I now have SSO ntlm authentication working with squid and dansguardian on pfsense (kerberos wasn't the issue).  User names are now showing up in the access.log (for both).  Once I can sort through the process again and document it I will post it for everyone's benefit.

                            Before I do that though I would like to have it resolving AD groups to map users to filtering groups working.  Right now I have an ldap configuration defined as such (the names have been changed to protect the innocent):

                            Hostname:  dc1.domain.local
                            Domain:  dc=domain,dc=local
                            Username:  cn=pfsense01ldap,ou=Services,ou=myOU
                            Password:  **********
                            mask:  USER

                            I also created a test filtering group named "pfsenseUsers" which is the same name as a group in AD and pointed it to the ldap configuration above with a 2m update frequency.  However a user in the pfsenseUsers group still get the "Default" filter group in the logs.  Do I have the mask wrong (I wasn't sure what I needed there)?  or is there something else I missed?

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

                              Great news wheelz! :D

                              Do I have the mask wrong (I wasn't sure what I needed there)?  or is there something else I missed?

                              check how users are listed on dansguardian log and try to set it on groups.

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

                              Help a community developer! ;D

                              1 Reply Last reply Reply Quote 0
                              • W
                                wheelz
                                last edited by

                                @marcelloc:

                                Great news wheelz! :D

                                Do I have the mask wrong (I wasn't sure what I needed there)?  or is there something else I missed?

                                check how users are listed on dansguardian log and try to set it on groups.

                                It just shows the user name and that's it.  What config files contain the ldap connection settings and the mapping of the filter groups to ldap connections?  I can see them in the GUI but couldn't find them in the backend files like dansguardian.conf…

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

                                  The ldap fetch is done by dansguardian_ldap.PHP

                                  It's not from dansguardian configuration.

                                  How users are listed on dansguardian user tab?

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

                                  Help a community developer! ;D

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    abnz
                                    last edited by

                                    @marcelloc:

                                    The way I use is squid on loopback interface port 3128 and dansguardian on 8080 sending to 127.0.0.1 port 3128.

                                    Check squid cache log to see if there's errors or warnings.

                                    feel like a dufus, I was sending dansguardian to loopback, but squid was listening on LAN NIC.
                                    FYI, default config finds this innapropriate ;D
                                    Thanks guys, really helpful forum here.

                                    1 Reply Last reply Reply Quote 0
                                    • W
                                      wheelz
                                      last edited by

                                      @marcelloc:

                                      The ldap fetch is done by dansguardian_ldap.PHP

                                      It's not from dansguardian configuration.

                                      How users are listed on dansguardian user tab?

                                      That tab just has the user name as well.  Interestingly enough there is a user there that I did not put in.  In my AD group I have two users.  The one I was testing with and another one.  The other one is listed.  I'm guessing that maybe it was working at one point and now is not updating since I think I added the second user (the one I was testing with) to it later…  Is there a log for the ldap fetch?

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

                                        @wheelz:

                                        Is there a log for the ldap fetch?

                                        No but you can run it on console/ssh and see the output.

                                        php /usr/local/www/dansguardian_ldap.php

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

                                        Help a community developer! ;D

                                        1 Reply Last reply Reply Quote 0
                                        • W
                                          wheelz
                                          last edited by

                                          Here is my output:

                                          Content-type: text/html

                                          Group : pfsenseUsers

                                          Warning: ldap_search(): Search: Bad search filter in /usr/local/www/dansguardian_ldap.php on line 77

                                          Warning: ldap_get_entries(): supplied argument is not a valid ldap result resource in /usr/local/www/dansguardian_ldap.php on line 78

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

                                            Clean your pfsenseUsers list on dansguardian config and run it again.

                                            When script find new config it show a message.

                                            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.