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

    Squid and Dansguardian not working

    Scheduled Pinned Locked Moved pfSense Packages
    23 Posts 5 Posters 10.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.
    • B Offline
      bryan.paradis
      last edited by

      You need to tell us:

      Is it a fresh 2.1 install or an upgrade?
      Have you had either squid or dansguardian installed before?
      What version of the packages do you have installed?
      What is your pkg_info result?
      What guide are you using to setup squid3+dansguardian?

      Also:

      Not getting a WAN IP could be the device that is handing out the IP and not the WAN interface in pfsense.
      Resetting the device infront of Pfsense or checking out syslogs would be the way to solve that not just endlessly rebooting pfsense
      Lots of people use Squid+Dansguardian
      You haven't really given us that much information to work with in solving the problem.

      1 Reply Last reply Reply Quote 0
      • A Offline
        Alternativende
        last edited by

        Ok sure i will do best i can.

        @bryan.paradis:

        Is it a fresh 2.1 install or an upgrade?
        Have you had either squid or dansguardian installed before?
        What version of the packages do you have installed?
        What is your pkg_info result?
        What guide are you using to setup squid3+dansguardian?

        It´s a fresh install.
        Dansguardian first, then Squid3, also tried Squid3-devel.
        I have installed them with the package service, so i guess it´s the recent version of DG.
        pkg_info result???
        I couldn´t find any guide on this.

        Not getting a WAN IP could be the device that is handing out the IP and not the WAN interface in pfsense.
        Resetting the device infront of Pfsense or checking out syslogs would be the way to solve that not just endlessly rebooting pfsense

        The device itself is definitely working with other firewalls. I have had a look into the syslog, but can´t remember what it was saying, sorry. It was something like LC down/LC UP trying to reconnect and so on.

        I can do a fresh install again, but i have really no idea where i should have made a big mistake here..

        1 Reply Last reply Reply Quote 0
        • B Offline
          bryan.paradis
          last edited by

          @Alternativende:

          Dansguardian first, then Squid3, also tried Squid3-devel.

          If you don't need something specifically in squid3 can you try the squid package instead?

          pkg_info result???

          Do a pkg_info and then a pbi_info in ssh terminal. It will output a list of all packages installed

          I couldn´t find any guide on this.

          https://www.google.ca/search?num=50&safe=off&espv=210&es_sm=93&q=squid+%2B+dansguardian+pfsense&oq=squid+%2B+dansguardian+pfsense&gs_l=serp.3..0j0i22i30l6.3149.3961.0.4087.8.8.0.0.0.0.109.667.6j1.7.0….0...1c.1.32.serp..1.7.666.VoxiQW2jGxQ

          The device itself is definitely working with other firewalls. I have had a look into the syslog, but can´t remember what it was saying, sorry. It was something like LC down/LC UP trying to reconnect and so on.

          What device is it plugged into? If you post about the problem you should include logs as well.

          Also you should read this thread as well and other threads in this forum that have to do with dansguardian + squid

          https://forum.pfsense.org/index.php/topic,69980.0.html

          1 Reply Last reply Reply Quote 0
          • A Offline
            Alternativende
            last edited by

            Sorry for warming this up again, but im sitting on this now again and i would love to get this work  :D.

            : pbi_info
            dansguardian-2.12.0.3-i386
            squid-2.7.9_3-i386

            So i have tried it now with every version of Squid which is available, but none of them seems to work with Dansguardian.

            Squid alone works every time. As soon as i try to communicate with DG itself nothing happens. The logfile itself is also clean.

            I have attached a picture of my only NAT rule at the moment, and i have also tried to activate and deactivate this rule.

            Everything without success now so far.

            Please tell me what im doing wrong here.

            Edit:
            It´s a fresh install inside a a larger network so far. The WAN interface gets an IP from another machine.

            natrule.png
            natrule.png_thumb
            squidconf.png
            squidconf.png_thumb
            natrule.png
            natrule.png_thumb
            dgconf.png
            dgconf.png_thumb

            1 Reply Last reply Reply Quote 0
            • A Offline
              Alternativende
              last edited by

              Anyone who can help out here?

              I really need this for an elementary school.

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

                OK… I guess I'd need to know more specifically how you have this setup... You should not need any NAT rules in order to get Dans working with Squid. You setup the squid proxy in the DG configuration. Then test manually connecting the browser to DG. If you want to make it "transparent", then add a redirect rule later...

                I've never had any problem with this working - with any version of Squid.

                @Alternativende:

                Anyone who can help out here?

                I really need this for an elementary school.

                1 Reply Last reply Reply Quote 0
                • A Offline
                  Alternativende
                  last edited by

                  Hi,
                  so i  do install Squid, install DG, but if i try then to point to DG with a browser nothing happens. He just won´t open ANY site. There is no log entry at all.

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    Alternativende
                    last edited by

                    Could you please upload some pictures of your settings and could you give a little description what you have installed in which order?

                    It would be very very helpful.

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

                      I install DG then Squid3. See attached pictures.

                      ![Screenshot from 2014-03-14 18:44:22.png](/public/imported_attachments/1/Screenshot from 2014-03-14 18:44:22.png)
                      ![Screenshot from 2014-03-14 18:44:22.png_thumb](/public/imported_attachments/1/Screenshot from 2014-03-14 18:44:22.png_thumb)
                      ![Screenshot from 2014-03-14 18:44:30.png](/public/imported_attachments/1/Screenshot from 2014-03-14 18:44:30.png)
                      ![Screenshot from 2014-03-14 18:44:30.png_thumb](/public/imported_attachments/1/Screenshot from 2014-03-14 18:44:30.png_thumb)
                      ![Screenshot from 2014-03-14 18:44:40.png](/public/imported_attachments/1/Screenshot from 2014-03-14 18:44:40.png)
                      ![Screenshot from 2014-03-14 18:44:40.png_thumb](/public/imported_attachments/1/Screenshot from 2014-03-14 18:44:40.png_thumb)

                      1 Reply Last reply Reply Quote 0
                      • Q Offline
                        q54e3w
                        last edited by

                        Ive managed to work through this thread, with input and learnings from a few others and finally have a working
                        squid / dansguardian setup.
                        Ive found a strange issue in that everything works great for the first ten minutes or so, then web surfing becomes slower before eventually stopping. If I shortcut the localhost chain (NAT 80 -> DG 8080 -> Squid 3128 -> Web) by setting my proxy direct to Squids 3128 port everything resumes as normal.
                        If I restart Dansguardian things return to normal as well so it appears to be some kind of memory leak / cache / buffers filling up type issue.
                        Any ideas? Ive killed squids caching along the route of debugging this matter and that didn't help.

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