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

    WARNING: Don't enable TLS to upstream DNS servers in pfSense 2.4.4

    Scheduled Pinned Locked Moved DHCP and DNS
    9 Posts 4 Posters 1.4k 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.
    • imcdonaI
      imcdona
      last edited by imcdona

      There's a memory leak in Unbound 1.7.3 which is included in pfSense 2.4.4. If you enable TLS to your upstream DNS servers bad things will happen. Here's a graph showing what you can expect if you enable TLS. Note the memory usage skyrocketing and then swap being used. If you run pfSense on an SD card and pfSense starts to aggressively use swap you can shorten the life of your SD card.

      In my case pfSense would eventually reboot resulting in a denial of service due to running out of memory but your results may very.

      0_1543875233633_db73b5e2-cbaa-46de-8d11-93659ea88b69-image.png

      PS: This should be pinned at the top of the forum until a fix has been issued.

      G 1 Reply Last reply Reply Quote 0
      • G
        gsiemon @imcdona
        last edited by

        @imcdona pfSense 2.4.4-p1 was released with an updated version of Unbound (1.8.1) a few hours ago. No idea if it fixes your issue or not though but the release notes refer to fixing memory leaks in Unbound.
        More information here: https://www.netgate.com/blog/pfsense-2-4-4-release-p1-now-available.html

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by

          Unbound 1.8.1 has been in pfSense for a few weeks now and yes, it does resolve the bug.
          There's another small bug in 1.8.1 where threading isn't enabled though. It's explained here, along with a fix I found.

          Only really an issue if your pfSense gets heaps of DNS requests.

          1 Reply Last reply Reply Quote 1
          • imcdonaI
            imcdona
            last edited by

            @muppet said in WARNING: Don't enable TLS to upstream DNS servers in pfSense 2.4.4:

            There's another small bug in 1.8.1 where threading isn't enabled though. It's explained here, along with a fix I found.

            I reported the threading bug in two separate posts on the forum two days ago. JIMP had said he posted an update and I commented that there was a threading bug and was ignored. Now you've got 2.4.4_1 out and Unbound still has issues. This doesn't instill confidence.

            ? jimpJ 2 Replies Last reply Reply Quote 0
            • ?
              A Former User @imcdona
              last edited by

              @imcdona You know I don't work for Netgate, right?

              imcdonaI 1 Reply Last reply Reply Quote 0
              • imcdonaI
                imcdona @A Former User
                last edited by

                @muppet I understand and I appreciate your help in getting this resolved. My comments are directed at Netgate.

                G 1 Reply Last reply Reply Quote 0
                • G
                  gsiemon @imcdona
                  last edited by

                  @imcdona The official place to report bugs is here: https://redmine.pfsense.org/projects/pfsense/issues. Reporting of bugs in the forum isn't a guaranteed way of getting them addressed.

                  imcdonaI 1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate @imcdona
                    last edited by

                    @imcdona said in WARNING: Don't enable TLS to upstream DNS servers in pfSense 2.4.4:

                    I reported the threading bug in two separate posts on the forum two days ago. JIMP had said he posted an update and I commented that there was a threading bug and was ignored. Now you've got 2.4.4_1 out and Unbound still has issues. This doesn't instill confidence.

                    At that point the release was already built, and this wouldn't have been a significant enough issue to stop the entire release process and restart all the testing needed.

                    It's also easily worked around by adding this to your custom options if it matters:

                    server:
                    so-reuseport: no
                    

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 1
                    • imcdonaI
                      imcdona @gsiemon
                      last edited by

                      @gsiemon said in WARNING: Don't enable TLS to upstream DNS servers in pfSense 2.4.4:

                      The official place to report bugs is here: https://redmine.pfsense.org/projects/pfsense/issues. Reporting of bugs in the forum isn't a guaranteed way of getting them addressed.

                      I'm well aware of the bug tracker. I specifically posted in the forum in response to a reply from Netgate staff saying that Unbound could be upgraded to 1.8.1. My thought was that since there is already a discussion going on regarding the issue I'd continue the conversation in the forum rather than add to the bug report for something that may or may not be related.

                      I did finally end up reporting the issue to the bug tracker after getting no response from Netgate in the forum thread they were a part of.

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