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

    DNS breaks after installing pfBlockerNG?

    Scheduled Pinned Locked Moved pfBlockerNG
    20 Posts 7 Posters 4.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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Ok, that's something else. It implies either Unbound isn't stopping correctly or something else is already listening on port 53.

      If you can trigger that again try running:

      sockstat|grep :53
      

      If nothing shows it could still be a timing issue in restarting Unbound.

      Steve

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Also, if you have Services Watchdog package installed, make sure you did NOT add Unbound to it. (That causes race conditions and wreaks complete havoc on DNS when pfBNG updates the DNSBLs.)

        1 Reply Last reply Reply Quote 0
        • RonpfSR
          RonpfS
          last edited by

          Might just be that unbound take a long time to start (mine take up to 3 minutes)
          When it boots unbound starts more than once, so while one instance is starting, a restart/reload happens and it can not bind to the port of the previous unfinished unbound.

          2.4.5-RELEASE-p1 (amd64)
          Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
          Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

          1 Reply Last reply Reply Quote 0
          • P
            pfcode
            last edited by

            @doktornotor:

            Also, if you have Services Watchdog package installed, make sure you did NOT add Unbound to it. (That causes race conditions and wreaks complete havoc on DNS when pfBNG updates the DNSBLs.)

            No, I don't have Watchdog package installed.

            Release: pfSense 2.4.3(amd64)
            M/B: Supermicro A1SRi-2558F
            HDD: Intel X25-M 160G
            RAM: 2x8Gb Kingston ECC ValueRAM
            AP: Netgear R7000 (XWRT), Unifi AC Pro

            1 Reply Last reply Reply Quote 0
            • P
              pfcode
              last edited by

              Just wondering, Whats the difference between manually restart Unbound vs. Auto restart Unbound by pfSense?  I'm really confused since the start process should be the same, manually restart works but auto restart doesn't work.

              Release: pfSense 2.4.3(amd64)
              M/B: Supermicro A1SRi-2558F
              HDD: Intel X25-M 160G
              RAM: 2x8Gb Kingston ECC ValueRAM
              AP: Netgear R7000 (XWRT), Unifi AC Pro

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

                note my thread in the pfsense 2.4 forum, my unbound doesnt start on boot if I do not select the default ALL interfaces, when specific interfaces are chosen the bootup script gets all confused and breaks, although I can always start it fine from the gui.

                So if you got specific network interfaces selected. change it to ALL to see if it fixes the boot problem.

                pfSense CE 2.8.0

                1 Reply Last reply Reply Quote 0
                • BBcan177B
                  BBcan177 Moderator
                  last edited by

                  I haven't had a chance to dig thru the Unbound/pfSense code to figure out this issue… but there definitely is an issue when utilizing DHCP... Hopefully one of the pfSense devs get a chance to improve that part of the code. I am unable to replicate in my environment as I am static...

                  "Experience is something you don't get until just after you need it."

                  Website: http://pfBlockerNG.com
                  Twitter: @BBcan177  #pfBlockerNG
                  Reddit: https://www.reddit.com/r/pfBlockerNG/new/

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Ah that's interesting. Do you know how that applies if you are using DHCP, as I am?

                    Like, DHCP WAN?

                    Steve

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

                      I have dhcp wan for ipv4 and ipv6.

                      On my setup there seems to be no ipv4 renewals been logged and as such no affect on unbound, but the dhcp wan ipv6 renews twice an hour and will restart unbound, I fixed it by manually patching the services.inc file to stop the configure_unbound function from restarting unbound.

                      Pfblockerng doesnt use that function so it can still restart unbound when it does its dnsbl updates.

                      pfSense CE 2.8.0

                      1 Reply Last reply Reply Quote 0
                      • P
                        pfcode
                        last edited by

                        @chrcoluk:

                        I have dhcp wan for ipv4 and ipv6.

                        On my setup there seems to be no ipv4 renewals been logged and as such no affect on unbound, but the dhcp wan ipv6 renews twice an hour and will restart unbound, I fixed it by manually patching the services.inc file to stop the configure_unbound function from restarting unbound.

                        Pfblockerng doesnt use that function so it can still restart unbound when it does its dnsbl updates.

                        May I know what/how you fixed in services.inc?

                        Release: pfSense 2.4.3(amd64)
                        M/B: Supermicro A1SRi-2558F
                        HDD: Intel X25-M 160G
                        RAM: 2x8Gb Kingston ECC ValueRAM
                        AP: Netgear R7000 (XWRT), Unifi AC Pro

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

                          sure

                          I used SECOIT GmbH's solution (crediting the original guy).

                          His post is here.

                          https://forum.pfsense.org/index.php?topic=89589.msg517047#msg517047

                          Be aware with this solution, if you do an action that requires a unbound restart/configure, you will manually need to stop and then start in the gui. pfblockerng will still be fine tho.

                          pfSense CE 2.8.0

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