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

    pfb_dnsnl (pfBlockerNG DNSBL) service won't start

    pfBlockerNG
    3
    25
    3.2k
    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
      bobslee
      last edited by

      I also posted a comment in: https://forum.netgate.com/post/1135574

      Versions:

      • Netgate pfSense version: 23.05.1
      • pfBlockerNG: 3.2.0_6

      I just reinstalled pfBNG, but the DNSBL server doesn't start.
      However in the sys logs there's no error, and I see "stopped / started".

      Any suggestions how to solve?
      Where can I find the pfBNG port settings?

      Thanks!

      J 1 Reply Last reply Reply Quote 0
      • J
        jrey @bobslee
        last edited by jrey

        @bobslee

        when you "reinstalled pfBNG" did you keep settings or are you starting from "new" ?

        did you force a reload of the DNSBL?

        did you check pfblockerng.log or error.log ?

        B 1 Reply Last reply Reply Quote 0
        • B
          bobslee @jrey
          last edited by bobslee

          @jrey I tried both.

          Following scenario's I tried:

          1. Upgrade pfSense
          • Before upgrade, "pfBNG-devel" was installed with "keep settings".
          • Uninstalled pfBNG-devel.
          • Installed pfBNG
          • DNSBL won't start
          1. After Upgrade pfSense, I removed pfBNG to start over.
            I reinstalled without (so no) "keep settings".

          Similar result, DNSBL won't start.

          For both scenarios (above): No warnings or errors shown in the system log.

          I'm really clueless ATM. Any suggestions, how to analyse ?

          J 1 Reply Last reply Reply Quote 0
          • J
            jrey @bobslee
            last edited by

            @bobslee

            .. did you check pfblockerng.log or error.log ?

            B 1 Reply Last reply Reply Quote 0
            • B
              bobslee @jrey
              last edited by bobslee

              @jrey Where can I find the error.log in the WebGUI ?

              Also see thescreenshots below, for some info.

              pfBlockerNG and Services status

              2d2437fa-7a81-4459-83e9-5f24110a14ef-image.png

              System log

              4f8b15fd-8bf9-4e81-80f1-9bf17873f259-image.png

              pfblockerng.log looks fine, no errors

              3387b681-ff9f-4880-b0e0-3957bf5350a4-image.png

              J 1 Reply Last reply Reply Quote 0
              • J
                jrey @bobslee
                last edited by

                @bobslee said in pfb_dnsnl (pfBlockerNG DNSBL) service won't start:

                Where can I find the error.log in the WebGUI ?

                Same place as the pfblockerng.log -- should be on the drop down.

                Also looks like it is running (dashboard Green Check) and it looks like the ADs_Basic has processed packets.

                so you might try simply

                disabling the service,
                reboot pfsense
                restart the service.

                B 1 Reply Last reply Reply Quote 0
                • B
                  bobslee @jrey
                  last edited by

                  @jrey Thanks, I followed your suggestion (also did before, I remember).

                  No lines in the error.log

                  No changes in the DNSBL Service Status (shows still not running).

                  Screenshot shows:

                  • Left: DNS lookup which appears in dnsbl.log
                  • Right but the DNS lookup succeeds?

                  This diagnostic/test lookup may not happen, or am I missing something ?

                  3bbbc0f6-73f5-4b51-bf3c-b313efdc54be-image.png

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    bobslee @bobslee
                    last edited by

                    @jrey If you need me to check or modify something on CLI (SSH) ?
                    Let me know.

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      jrey @bobslee
                      last edited by

                      @bobslee
                      so the DNSBL is in fact blocking.

                      Can you hit VIP from a browser and see the blocked webpage?
                      Screen Shot 2023-11-12 at 2.36.25 PM.png

                      you should see the webpage ?
                      Screen Shot 2023-11-12 at 2.37.21 PM.png

                      -- command line what do you get if you restart the service there?
                      cd /usr/local/etc/rc.d
                      ./pfb_dnsbl.sh restart

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        bobslee @jrey
                        last edited by bobslee

                        @jrey The VIP in browser keeps loading and finally timeout.

                        Restart:

                        [23.05.1-RELEASE][USER@pfSense.local.lan]/usr/local/etc/rc.d: ./pfb_dnsbl.sh restart
                        2023-11-12 20:54:04: (/wrkdirs/usr/ports/www/lighttpd/work/lighttpd-1.4.71/src/plugin.c.209) dlopen() failed for: /usr/local/lib/lighttpd/mod_openssl.so Shared object "libssl.so.30" not found, required by "mod_openssl.so"
                        2023-11-12 20:54:04: (/wrkdirs/usr/ports/www/lighttpd/work/lighttpd-1.4.71/src/server.c.1631) loading plugins finally failed
                        
                        J 2 Replies Last reply Reply Quote 0
                        • J
                          jrey @bobslee
                          last edited by

                          @bobslee said in pfb_dnsnl (pfBlockerNG DNSBL) service won't start:

                          keeps loading and finally timeout.

                          so no page loads then

                          @bobslee said in pfb_dnsnl (pfBlockerNG DNSBL) service won't start:

                          ./pfb_dnsbl.sh restart

                          umm, according to the dependencies, pfBlocker should be using
                          lighttpd 1.4.72

                          and your error message for the restart says in part.

                          www/lighttpd/work/lighttpd-1.4.71

                          first check the version running - command prompt
                          lighttpd -v

                          should resspond
                          lighttpd/1.4.72 (ssl) - a light and fast webserver

                          if 1.4.72 (like above ^^)
                          stop
                          else
                          wouldn't hurt to grab a config backup, then
                          uninstall pfblocker (remove the package) (keep settings)
                          reboot pfsense
                          both pfblocker packages should be in the available package
                          install the non devel version (you're not missing anything)

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            jrey @jrey
                            last edited by jrey

                            @jrey said in pfb_dnsnl (pfBlockerNG DNSBL) service won't start:

                            according to the dependencies, pfBlocker should be using
                            lighttpd 1.4.72

                            My bad, I was looking on a different version of pfsense
                            under 23.09 the dependency is 1.4.71 so likely not changed from 23.05.1 (but I don't recall)
                            however under 2.7.1-RC (my sandbox) it is 1.4.72 for the same pfBlocker Version

                            there are minor differences in some of the other dependencies as well.

                            Under 23.09
                            Screen Shot 2023-11-12 at 4.11.46 PM.png

                            under 2.7.1-RC
                            Screen Shot 2023-11-12 at 4.12.24 PM.png

                            service is running on both here

                            but this:

                            2023-11-12 20:54:04: (/wrkdirs/usr/ports/www/lighttpd/work/lighttpd-1.4.71/src/plugin.c.209) dlopen() failed for: /usr/local/lib/lighttpd/mod_openssl.so Shared object "libssl.so.30" not found, required by "mod_openssl.so"
                            2023-11-12 20:54:04: (/wrkdirs/usr/ports/www/lighttpd/work/lighttpd-1.4.71/src/server.c.1631) loading plugins finally failed

                            is likely the root cause why the service isn't starting, it is not seeing what it wants for a successful start.

                            Both of my instances only report a non-fatal cipher error when running pfb_dnsbl.sh restart but the non-fatal allows it to run, and service to start.

                            might need to trouble-shoot specifically the error you are getting,

                            "lighttpd not starting properly with llibssi.so not found error"

                            1 Reply Last reply Reply Quote 0
                            • J
                              jrey @bobslee
                              last edited by

                              @bobslee

                              You didn't have a wrong repo branch selected when you did one of those updates you noted above.?

                              this implies maybe you did.

                              Before upgrade, "pfBNG-devel" was installed with "keep settings".

                              B 1 Reply Last reply Reply Quote 0
                              • B
                                bobslee @jrey
                                last edited by

                                @jrey Thanks for your effort!

                                Indeed, my lighttpd version is 1.4.71.

                                Regarding the update, I just followed the WebGUI update path.
                                I didn't altered the branch manually.

                                At this moment he Update window shows:

                                5a4b4d11-5174-4660-afb9-c31a60a04681-image.png

                                FreeBSD pkg program/command

                                More info to elaborate on the issue ...
                                Maybe following it's related to the openssl issue ?
                                Just checking here. Does pfSense ship with the pkg command ?

                                When I run eg pkg info lighttpd I get the output:
                                ld-elf.so.1: Shared object "libssl.so.30" not found, required by "pkg"

                                Which steps (of below) to proceed?

                                1. Reinstall pfBNG ?

                                Before this post, I already did your previous suggestion.
                                So maybe try again?

                                Uninstall pfBNG (keep settings)
                                Reboot
                                Install pfBNG non devel.

                                2. Update to 23.09 ?

                                Is it stable enough, things won't break?

                                Regarding backups:
                                I also use the ABC (auto config backup)
                                Is it possible to restore/rooback the whole system OS/FreeBSD with the ABC, in worst case?

                                B J 2 Replies Last reply Reply Quote 0
                                • B
                                  bobslee @bobslee
                                  last edited by

                                  @jrey I noticed following.
                                  However I didn't performed anything (no side effects) on the pfSense CLI yet, to keep it standard.

                                  Probably the pkg command isn't available, instead there's pkg-static (kinda wrapper) ?

                                  I found the documentation section "Troubleshooting Upgrades".
                                  https://docs.netgate.com/pfsense/en/latest/troubleshooting/upgrades.html
                                  Maybe there's useful info regarding the issue (pfBNG + lighttpd + openssl) and deps ?

                                  B 1 Reply Last reply Reply Quote 0
                                  • B
                                    bobslee @bobslee
                                    last edited by

                                    @jrey By the way ...
                                    I doubt whether it's an openssl package issue, because the webserver (Lighttpd) serves HTTPS and also OpenVPN server/client (does use SSL?) still works.

                                    Kinda lost now.

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      jrey @bobslee
                                      last edited by

                                      @bobslee said in pfb_dnsnl (pfBlockerNG DNSBL) service won't start:

                                      When I run eg pkg info lighttpd I get the output:
                                      ld-elf.so.1: Shared object "libssl.so.30" not found, required by "pkg"

                                      Sound about right, if the Repo is pointing at 23.09 which it appears to be in the screen shot showing latest stable version above. Anything installed would be puling from there, not the version you are on which is still. 23.05.1

                                      You might find this thread helpful in this regard.

                                      https://forum.netgate.com/topic/183088/error-libssl-so-30-not-found-when-installing-package?_=1699874971773

                                      B 1 Reply Last reply Reply Quote 0
                                      • B
                                        bobslee @jrey
                                        last edited by

                                        @jrey Ok that clarifies :)

                                        The system update screen seems a bit awkward to me, to pin the pkg repo that way.
                                        It also suddenly was set to 23.09 (I didn't manually).

                                        Can you recommend how I can proceed quickly and safely ?
                                        Sorry I'm really in a lack of time.

                                        Either, one of below ... ?

                                        (1) Change Branch ?
                                        Should I just change the "Branch" to "Previous Stable Version (23.05)" ?
                                        Does this immediately updates the pkg index ?
                                        Or which action to undertake here ?

                                        (2) Update the systgem (OS + packages) to 23.09 ?

                                        J 1 Reply Last reply Reply Quote 0
                                        • J
                                          jrey @bobslee
                                          last edited by

                                          @bobslee said in pfb_dnsnl (pfBlockerNG DNSBL) service won't start:

                                          It also suddenly was set to 23.09 (I didn't manually).

                                          Interesting before an update, it should always be showing you the version you are currently on and the drop down will have the next (if one is available) or last as selection options.

                                          Screen Shot 2023-11-13 at 7.06.36 AM.png

                                          Clearly the screen capture you provided is showing conflicting information,
                                          a) that you are on the branch "Latest Stable Version (23.09)
                                          b) that you are current at 23.05.1

                                          Seems broken ;-)

                                          If you are formatted ZFS Boot Environments might be your friend ?

                                          I really can't recommend the next best course of action (and there are many) for your particular situation, that is a risk evaluation for each case, you need to make.

                                          If you try to change the Branch here, forward or backward give it several minutes to adjust. I select the branch, navigate to the dashboard, grab a coffee, come back and confirm what the screen says, then proceed if the choice is appropriate. I've never had to select a previous version.

                                          Often times in cases like this a fresh new image (start from scratch) is what I see recommended more often than not.

                                          B 1 Reply Last reply Reply Quote 0
                                          • B
                                            bobslee @jrey
                                            last edited by bobslee

                                            @jrey Thanks for your suggestions and effort !

                                            I really appreciate it !
                                            I understand the dedication in an open source community, as I also develop and maintain a big project.

                                            I feel a bit n00b now.
                                            Apparently the System Update version pinning was the cause of all this!

                                            As you suggested:
                                            I selected the previous stable version (my base system is on).
                                            Waited.
                                            Removed/uninstalled pfBNG
                                            Installed pfBNG

                                            Now the DNSBL service just works !

                                            I feel sorry about your efforts.
                                            But the pfSense UI/UX could be improved here.

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