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

[SOLVED] pfBlockerNG - Reloading unbound fails

Scheduled Pinned Locked Moved pfBlockerNG
18 Posts 8 Posters 11.8k 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.
  • F
    fpv
    last edited by Sep 30, 2016, 8:29 AM Sep 29, 2016, 4:09 PM

    Hello!

    I installed pfSense 2.3.2 and wanted to give pfBlockerNG a try. I activated the EasyList for DNSBL, but there is an error when unbound is supposed to be reloaded during the update/refresh.

     UPDATE PROCESS START [ 09/29/16 17:54:50 ]
    
    ===[  DNSBL Process  ]================================================
    
    [ EZlist ]		 Reload . completed ..
      ----------------------------------------------------------------------
      Orig.    Unique     # Dups     # White    # Alexa    Final                
      ----------------------------------------------------------------------
      5844     5518       0          0          0          5518                 
      ----------------------------------------------------------------------
      IP count=28
    
    [ EZpriv ]		 Reload [ 09/29/16 17:54:52 ] . completed ..
      ----------------------------------------------------------------------
      Orig.    Unique     # Dups     # White    # Alexa    Final                
      ----------------------------------------------------------------------
      2659     2640       20         0          0          2620                 
      ----------------------------------------------------------------------
      IP count=14
    
    [ DNSBL_IP ]		 Updating aliastable [ 09/29/16 17:54:53 ]... 
      no changes.
      Total IP count = 42
    
    ------------------------------------------
    Assembling database... completed
    Validating database... completed [ 09/29/16 17:54:54 ]
    Reloading Unbound... Failed to Reload... Restoring previous database.... Not completed.
    
    *** DNSBL update [ 0 ] [ 8138 ] ... OUT OF SYNC ! ***
    ------------------------------------------
    
    ===[  Continent Process  ]============================================
    
    ===[  Aliastables / Rules  ]==========================================
    
    No changes to Firewall rules, skipping Filter Reload
    No Changes to Aliases, Skipping pfctl Update
    
    ===[ FINAL Processing ]=====================================
    
       [ Original IP count   ]  [ 0 ]
    
       [ Final IP Count  ]  [ 0 ]
    
    ===[ DNSBL Domain/IP Counts ] ===================================
    
        8180 total
        5518 /var/db/pfblockerng/dnsbl/EZlist.txt
        2620 /var/db/pfblockerng/dnsbl/EZpriv.txt
          28 /var/db/pfblockerng/dnsbl/EZlist.ip
          14 /var/db/pfblockerng/dnsbl/EZpriv.ip
    ===============================================================
    
    Database Sanity check [  PASSED  ]
    ------------------------
    Masterfile/Deny folder uniq check
    Deny folder/Masterfile uniq check
    
    Sync check (Pass=No IPs reported)
    ----------
    
    IPv4 alias tables IP count
    -----------------------------
    42
    
    IPv6 alias tables IP count
    -----------------------------
    0
    
    Alias table IP Counts
    -----------------------------
          42 /var/db/aliastables/pfB_DNSBLIP.txt
    
    pfSense Table Stats
    -------------------
    table-entries hard limit  2000000
    Table Usage Count         66
    
     UPDATE PROCESS ENDED [ 09/29/16 17:54:56 ]
    
    

    At the same time these messages appear in the DNS Resolver log (newest line at the top). Never mind the different time stamps to above, I tried it multiple times.

    Sep 29 18:07:02 	unbound 	71145:0 	error: remote control failed ssl crypto error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
    Sep 29 18:07:02 	unbound 	71145:0 	notice: failed connection from 127.0.0.1 port 24090
    Sep 29 18:07:02 	unbound 	71145:0 	error: remote control connection closed prematurely
    Sep 29 18:07:02 	unbound 	71145:0 	error: remote control failed ssl crypto error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
    Sep 29 18:07:02 	unbound 	71145:0 	notice: failed connection from 127.0.0.1 port 48160
    Sep 29 18:07:02 	unbound 	71145:0 	error: remote control connection closed prematurely
    Sep 29 18:07:02 	unbound 	71145:0 	error: remote control failed ssl crypto error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
    Sep 29 18:07:02 	unbound 	71145:0 	notice: failed connection from 127.0.0.1 port 60622
    Sep 29 18:07:02 	unbound 	71145:0 	error: remote control connection closed prematurely
    Sep 29 18:07:02 	unbound 	71145:0 	error: remote control failed ssl crypto error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
    Sep 29 18:07:02 	unbound 	71145:0 	notice: failed connection from 127.0.0.1 port 35310
    Sep 29 18:07:02 	unbound 	71145:0 	error: remote control connection closed prematurely
    Sep 29 18:07:02 	unbound 	71145:0 	error: remote control failed ssl crypto error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
    Sep 29 18:07:02 	unbound 	71145:0 	notice: failed connection from 127.0.0.1 port 10312
    Sep 29 18:07:02 	unbound 	71145:0 	error: remote control connection closed prematurely 
    

    Any ideas where I should look next?

    1 Reply Last reply Reply Quote 0
    • B
      BBcan177 Moderator
      last edited by Sep 29, 2016, 4:25 PM

      @fpv:

      Sep 29 18:07:02 unbound 71145:0 error: remote control failed ssl crypto error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
      Sep 29 18:07:02 unbound 71145:0 notice: failed connection from 127.0.0.1 port 24090
      Sep 29 18:07:02 unbound 71145:0 error: remote control connection closed prematurely
      Sep 29 18:07:02 unbound 71145:0 error: remote control failed ssl crypto error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
      Sep 29 18:07:02 unbound 71145:0 notice: failed connection from 127.0.0.1 port 48160
      Sep 29 18:07:02 unbound 71145:0 error: remote control connection closed prematurely
      Sep 29 18:07:02 unbound 71145:0 error: remote control failed ssl crypto error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
      Sep 29 18:07:02 unbound 71145:0 notice: failed connection from 127.0.0.1 port 60622
      Sep 29 18:07:02 unbound 71145:0 error: remote control connection closed prematurely
      Sep 29 18:07:02 unbound 71145:0 error: remote control failed ssl crypto error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
      Sep 29 18:07:02 unbound 71145:0 notice: failed connection from 127.0.0.1 port 35310
      Sep 29 18:07:02 unbound 71145:0 error: remote control connection closed prematurely
      Sep 29 18:07:02 unbound 71145:0 error: remote control failed ssl crypto error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert bad certificate
      Sep 29 18:07:02 unbound 71145:0 notice: failed connection from 127.0.0.1 port 10312
      Sep 29 18:07:02 unbound 71145:0 error: remote control connection closed prematurely

      Any ideas where I should look next?

      Did you enable DNSSEC in the Resolver? If you're using the Resolver in "Forwarder mode", ensure that the DNS Servers that your using support DNSSEC.

      "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
      • F
        fpv
        last edited by Sep 29, 2016, 4:32 PM

        Thanks for getting back so quickly. DNSSEC was enabled, forwarding was not. I disabled DNSSEC, restarted unbound and tried again, but the messages remain the same on both fronts.

        1 Reply Last reply Reply Quote 0
        • B
          BBcan177 Moderator
          last edited by Sep 29, 2016, 4:37 PM

          Enable "Suppression" in the pfBlockerNG General Tab, then run a "Force Reload - All" and see if that fixes it for you…

          Does this command execute ok?

          unbound-control -c /var/unbound/unbound.conf status
          

          "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
          • F
            fpv
            last edited by Sep 29, 2016, 5:30 PM Sep 29, 2016, 4:46 PM

            Enabled suppression and tried again, still the same.

            And no, the command does not execute OK:

            error: Error setting up SSL_CTX client key and cert
            34386131464:error:0200100D:system library:fopen:Permission denied:/builder/pfsense-232/tmp/FreeBSD-src/secure/lib/libcrypto/../../../crypto/openssl/crypto/bio/bss_file.c:398:fopen('/var/unbound/unbound_control.pem','r')
            34386131464:error:20074002:BIO routines:FILE_CTRL:system lib:/builder/pfsense-232/tmp/FreeBSD-src/secure/lib/libcrypto/../../../crypto/openssl/crypto/bio/bss_file.c:400:
            34386131464:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:/builder/pfsense-232/tmp/FreeBSD-src/secure/lib/libssl/../../../crypto/openssl/ssl/ssl_rsa.c:687:
            
            
            1 Reply Last reply Reply Quote 0
            • B
              BBcan177 Moderator
              last edited by Sep 29, 2016, 4:49 PM

              Something is wrong with the Resolver installation… Leave DNSBL disabled for now, and post in the DHCP/DNS section to see how to fix that issue with the base software...

              Make sure to post what version of pfSense you are using. Or maybe try a fresh install and copy back you current config?

              Once you have the Resolver functional, then re-enable DNSBL...

              "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
              • F
                fpv
                last edited by Sep 29, 2016, 5:30 PM Sep 29, 2016, 4:53 PM

                All right, thanks for your help.

                One more thing: When I ran the unbound-control command just then I was NOT logged in as admin/root, but as another user who I thought had the same rights, which does not seem to be true. Running as root gives me

                unbound-control -c /var/unbound/unbound.conf status
                error: SSL handshake failed
                34386131464:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed:/builder/pfsense-232/tmp/FreeBSD-src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_clnt.c:1185:
                
                1 Reply Last reply Reply Quote 0
                • F
                  fpv
                  last edited by Sep 30, 2016, 8:30 AM

                  I don't know how, but a reboot seems to have fixed it. unbound doesn't throw any errors, and DNSBL work as they should.

                  1 Reply Last reply Reply Quote 0
                  • C
                    Coornail
                    last edited by May 11, 2017, 9:49 AM

                    I had the same problem, restart didn't work for me.

                    What did help is that I disabled EasyPrivacy in DNSBL EasyList.

                    Not sure why this happened exactly, but maybe it will help people out who find this topic.

                    1 Reply Last reply Reply Quote 0
                    • L
                      lmannyr
                      last edited by Feb 12, 2018, 4:19 AM

                      I had this same Error: Reloading Unbound… Failed to Reload... Restoring previous database.... Not completed.

                      Disabling EasyPrivacy in DNSBL EasyList also worked for me.

                      Using PFSense 2.4.2 p1 latest release

                      1 Reply Last reply Reply Quote 0
                      • S
                        Superluminar
                        last edited by Jul 7, 2018, 5:04 PM

                        I had the same issues and found another solution:

                        Sometimes the certificates generated by ubound are not valid (by time/date/etc.).

                        Solution: delete all certificates from ubound in the folder /var/ubound/ - than restart pfsense/ubound.

                        aleareroA 1 Reply Last reply Apr 24, 2020, 8:44 PM Reply Quote 1
                        • noplanN
                          noplan
                          last edited by Dec 30, 2018, 4:10 PM

                          same here,
                          after deleting

                          unbound_control.key
                          unbound_control.pem
                          unbound_server.key
                          unbound_server.pem

                          reboot everything worked no error in

                          unbound-control -c /var/unbound/unbound.conf status

                          aleareroA juanzelliJ 2 Replies Last reply Apr 24, 2020, 8:40 PM Reply Quote 3
                          • aleareroA
                            alearero @noplan
                            last edited by Apr 24, 2020, 8:40 PM

                            @noplan said in [SOLVED] pfBlockerNG - Reloading unbound fails:

                            unbound-control -c /var/unbound/unbound.conf status

                            Hello, I am a beginner in pfsense, please can you tell me what are the commands to delete these files? or is there an interface to remove them?

                            1 Reply Last reply Reply Quote 0
                            • aleareroA
                              alearero @Superluminar
                              last edited by Apr 24, 2020, 8:44 PM

                              @Superluminar

                              Hello, I am a beginner in pfsense, please can you tell me what are the commands to delete these files? or is there an interface to remove them?

                              1 Reply Last reply Reply Quote 0
                              • noplanN
                                noplan
                                last edited by Apr 24, 2020, 8:46 PM

                                rm unbound_control.key
                                

                                be aware ! and understand what you are doing.

                                brNp

                                aleareroA 1 Reply Last reply Apr 25, 2020, 2:42 AM Reply Quote 0
                                • aleareroA
                                  alearero @noplan
                                  last edited by Apr 25, 2020, 2:42 AM

                                  @noplan

                                  It worked for me, thanks everyone.

                                  2ec23146-c625-4a53-acb3-5539f98decf9-image.png

                                  1 Reply Last reply Reply Quote 1
                                  • noplanN
                                    noplan
                                    last edited by Apr 25, 2020, 6:47 AM

                                    cool thing !
                                    have fun & stay safe nP

                                    1 Reply Last reply Reply Quote 0
                                    • juanzelliJ
                                      juanzelli @noplan
                                      last edited by Jan 8, 2023, 4:17 PM

                                      @noplan Many thanks. Removing those files (dated 1969) and restarting the Unbound service worked for me

                                      Netgate 4100 and HPE InstantOn network at home

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post
                                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                        This community forum collects and processes your personal information.
                                        consent.not_received