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

    pfblocker pfb_dnsbl service not starting

    Scheduled Pinned Locked Moved pfBlockerNG
    19 Posts 2 Posters 232 Views 2 Watching
    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.
    • P Offline
      popeel-SSH
      last edited by

      Thanks for the update. 👍

      5924c515-961e-485b-a444-f08f4d43813f-image.png

      Disk space is healthy. it's only used 1%.
      a9de53b2-f8dc-4b0c-a062-78b8b7188df1-image.png

      This .pem file is missing in that unbound folder. I have created an empty file and then it's complaint "couldn't read X509 "
      Because it should be a certificate file.

      I am not sure why this file has not created itself.

      I have removed the package and reinstall few times.

      GertjanG 1 Reply Last reply Reply Quote 0
      • P Offline
        popeel-SSH @Gertjan
        last edited by

        @Gertjan

        Looks like I have missed so many files that includes all certificate , SSL files.

        71ad07d3-f227-41e9-a97c-b76f140720ae-image.png

        1 Reply Last reply Reply Quote 0
        • GertjanG Offline
          Gertjan @popeel-SSH
          last edited by Gertjan

          @popeel-SSH

          cdd192bb-db24-4eb7-a55c-7e4e7e8c4062-image.png

          Yikes ....

          You saw that 298987882 ? That a file size in bytes.
          Or 300 Mbytes or so.

          Please, confirm that you follow the "I use pfBLockerng in '2025' mode" aka 'python mode':

          69e67635-bf4e-4ee3-b187-0a3724998dac-image.png

          and if this is the case, delete that huge "pfb_dnsbl.conf" file.

          Hummm, it was created moments ago.
          You are, I guess, still using pfBlockerng with 'unbound' mode.
          Long story short : ..... don't (or at least, be ware of the consequences, like the problem you now have ^^)

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          P 1 Reply Last reply Reply Quote 0
          • P Offline
            popeel-SSH @Gertjan
            last edited by

            @Gertjan

            I used the unbound mode not python.

            I just changed to python mode and force reload all and the issue is still there.

            b16c97e2-fe4c-4ac4-ab61-396c1f7d8bc2-image.png

            52cccf42-8e1b-42c2-a6c2-62025d322100-image.png

            4168bc8c-36c0-46ea-bad1-742157799062-image.png

            GertjanG 1 Reply Last reply Reply Quote 0
            • GertjanG Offline
              Gertjan @popeel-SSH
              last edited by Gertjan

              @popeel-SSH

              The big file is gone ?
              /var/unbound/dnsbl_cert.pem really isn't there ?

              During the reload : this part :

              ....
              Saving DNSBL statistics... completed [ 10/8/25 14:30:26 ]
              Reloading Unbound Resolver (DNSBL python).
              Stopping Unbound Resolver.
              Unbound stopped in 2 sec.
              Additional mounts (DNSBL python):
                No changes required.
              Starting Unbound Resolver... completed [ 10/8/25 14:30:28 ]
              Resolver cache restored [ 10/8/25 14:30:29 ]
              DNSBL update [ 79112 | PASSED  ]... completed
              ....
              

              what does your reload log say ?

              You can also try : stop unbound manually on the dashboard.
              Count to 3.
              Start it on the same place.
              Restart/reload pfBlockerng again.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              P 1 Reply Last reply Reply Quote 0
              • P Offline
                popeel-SSH @Gertjan
                last edited by

                @Gertjan

                Unfortunately, /var/unbound/dnsbl_cert.pem still isn't there.

                ce1976fe-c45a-4ec1-a53d-467684df8e1e-image.png

                153f5b94-6de3-48a9-b0f8-599391f6ebba-image.png

                GertjanG 1 Reply Last reply Reply Quote 0
                • P Offline
                  popeel-SSH
                  last edited by

                  @Gertjan said in pfblocker pfb_dnsbl service not starting:

                  You can also try : stop unbound manually on the dashboard.
                  Count to 3.
                  Start it on the same place.
                  Restart/reload pfBlockerng again.

                  I cannot find a place to stop unbound from dashboard. Is that in the pfsense+ web interface ?

                  1 Reply Last reply Reply Quote 0
                  • GertjanG Offline
                    Gertjan @popeel-SSH
                    last edited by Gertjan

                    @popeel-SSH said in pfblocker pfb_dnsbl service not starting:

                    /var/unbound/dnsbl_cert.pem still isn't there.

                    Look at mine :
                    It was (re) created 8 days ago, that's more then a week.
                    That was, I guess ? when I re reinstalled (== upgraded) pfgBlockerng.
                    So ... not sure, it isn't recreated every time ??

                    Look at : /usr/local/pkg/pfblockerng/pfblockerng.inc line 181 : that where the file is created.
                    That will happen when you (re) install pfBlockerng.

                    So, give that a try ?
                    If there is an happy end, it will be announced by :

                    a9a88e87-b205-4878-9d60-88667b121f31-image.png

                    Btw : remove all huge DNSBL feeds first.
                    Go minimal mode first, nothing fancy :

                    cd9bedb4-628b-42ec-8bd8-b15f98905c5f-image.png

                    I mean, I can see the place where the lighttpd config file are created (and the the cert file) at the final "update DNSBL files" stage. if that stage isn't reached, the file never gets created etc.

                    No "help me" PM's please. Use the forum, the community will thank you.
                    Edit : and where are the logs ??

                    P 1 Reply Last reply Reply Quote 0
                    • P Offline
                      popeel-SSH @Gertjan
                      last edited by

                      @Gertjan

                      I don't want to run any files outside the box as it's in productions. :(

                      I have removed the package > install it > run the wizard to configure the basic setup. (Just select LAN & WAN)

                      When I gone and change the python mode and reload it doesn't install the certificate and manual start gives the error

                      "/var/unbound/dnsbl_cert.pem: No such file or directory"

                      I have send a message to the developer and waiting for any update.

                      GertjanG 1 Reply Last reply Reply Quote 0
                      • GertjanG Offline
                        Gertjan @popeel-SSH
                        last edited by Gertjan

                        @popeel-SSH said in pfblocker pfb_dnsbl service not starting:

                        I don't want to run any files outside the box as it's in productions.

                        Outside ? What do you mean ?


                        My turn :
                        I deleted /var/unbound/dnsbl_cert.pem
                        Now, like you :

                        [25.07.1-RELEASE][root@pfSense.bhf.tld]/var/unbound: ll /var/unbound/dnsbl_cert.pem
                        ls: /var/unbound/dnsbl_cert.pem: No such file or directory
                        

                        I did a full reload (and scrolled trough the resulting log) :

                        dc294e4d-7a48-4401-a7c7-a9a918e10eb1-image.png

                        You see what happened (green ^^).

                        And the file was there again :

                        [25.07.1-RELEASE][root@pfSense.bhf.tld]/var/unbound: ll /var/unbound/dnsbl_cert.pem
                        -rw-r--r--  1 root unbound 3359 Oct  8 15:51 /var/unbound/dnsbl_cert.pem
                        

                        For some reasons, your 'pfSense' can't create a cert ? Or it can create the cert, but can't save it at the /var/unbound/ destination..... Hummm.
                        I'll take this one @home, study it somewhat to find out the reason what can be the reason.

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

                        P 1 Reply Last reply Reply Quote 0
                        • P Offline
                          popeel-SSH @Gertjan
                          last edited by

                          @Gertjan

                          Yes. It's not the only file that cannot create. There is a SSL certificate file needs to be in the same location and mine it is not.

                          Please let me know if you find anything.

                          I will wait couple of days and maybe rebuild the firewall and see if that does anything.

                          Thanks for your time.

                          GertjanG 1 Reply Last reply Reply Quote 0
                          • GertjanG Offline
                            Gertjan @popeel-SSH
                            last edited by Gertjan

                            @popeel-SSH said in pfblocker pfb_dnsbl service not starting:

                            Yes. It's not the only file that cannot create. There is a SSL certificate file needs to be in the same location and mine it is not.

                            The "dnsbl_cert.pem" is the web servers (lighttpd) certificate file.
                            Other files are missing ?

                            No "help me" PM's please. Use the forum, the community will thank you.
                            Edit : and where are the logs ??

                            P 2 Replies Last reply Reply Quote 0
                            • P Offline
                              popeel-SSH @Gertjan
                              last edited by

                              @Gertjan Yes. As you can see my screenshot of the unbound directory.

                              I am planning to rebuild the pfsense and try that. I will update you.

                              Thanks

                              1 Reply Last reply Reply Quote 0
                              • P Offline
                                popeel-SSH @Gertjan
                                last edited by

                                @Gertjan

                                I have reinstall the firewall from the fresh and installed pfBlocker with minimal settings, and it is functioning properly.

                                After that, I performed a factory reset on the firewall, restore our config.xml, and installed pfBlocker NG with the same minimal settings, but I encountered the same error, and the certificate was not created.

                                Not sure what is in my config should stop this ??

                                These are the files in my /var/unbound

                                5e36cfd8-a6ce-49bb-a7ea-b7c05b54c60d-image.png

                                GertjanG 1 Reply Last reply Reply Quote 0
                                • GertjanG Offline
                                  Gertjan @popeel-SSH
                                  last edited by

                                  This :

                                  @popeel-SSH said in pfblocker pfb_dnsbl service not starting:

                                  performed a factory reset on the firewall, restore our config.xml

                                  is a null operation.
                                  Your "pfSense" as installed, is always the same.

                                  When you discard your own setup, and go to the default setup, and re assign interface, and make it work again (LAN+WAN), and then import your previous config file, your back at square zero.

                                  No "help me" PM's please. Use the forum, the community will thank you.
                                  Edit : and where are the logs ??

                                  P 1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    popeel-SSH @Gertjan
                                    last edited by

                                    @Gertjan

                                    I tried that too.

                                    PFSence factry default> setup the firewall basic (without any of our config)> Install pfblockerNG run the wizard with only WAN and LAN > both pfblocker and DNSBL service runs fine and start up okay.

                                    When I restore the config to the firewall it's then stop working.

                                    It's something in our config causing this to stop.

                                    Let's see pfblocker support can help on this.

                                    I will keep updating.

                                    Thanks

                                    P 1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      popeel-SSH @popeel-SSH
                                      last edited by

                                      @BBcan177

                                      Will find a solution for this sooner.

                                      Thanks in advance. :)

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