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

    PfBlockerNG 2.1.1_5 / Pfsense 2.4

    Scheduled Pinned Locked Moved pfBlockerNG
    43 Posts 7 Posters 49.5k 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.
    • AhnHELA
      AhnHEL
      last edited by

      I get the Crash Report whenever I look at Firewall/pfBlockerNG/Log Browser/dnsbl.log in the GUI.  Its blank btw.

      VIP Config is 10.10.10.1

      PING 10.10.10.1 (10.10.10.1): 56 data bytes
      64 bytes from 10.10.10.1: icmp_seq=0 ttl=64 time=0.044 ms
      64 bytes from 10.10.10.1: icmp_seq=1 ttl=64 time=0.022 ms
      64 bytes from 10.10.10.1: icmp_seq=2 ttl=64 time=0.021 ms
      
      --- 10.10.10.1 ping statistics ---
      3 packets transmitted, 3 packets received, 0.0% packet loss
      round-trip min/avg/max/stddev = 0.021/0.029/0.044/0.011 ms
      

      AhnHEL (Angel)

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

        Quick fix for the crash

        touch /var/log/pfblockerng/dnsbl.log

        And 10.10.10.1 is outside the LAN interfaces networks range.

        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
        • AhnHELA
          AhnHEL
          last edited by

          Yup the Touch command fixed that nasty Crash Report.  dnsbl.log is still blank after trying to restart service which still doesnt start.

          Used the Touch command for the error.log as well, that was causing a Crash Report as well.

          LAN is in the 192.168.xxx.yyy/24

          AhnHEL (Angel)

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

            Check the NAT and Floating rules to see 10.10.10.1 is defined correctly.

            Look at /var/log/pfblockerng/dnsbl_error.log

            2016-12-20 18:54:49: (configfile-glue.c.694) === start of 2016-12-20 19:20:02: (server.c.1820) server stopped by UID = 0 PID = 2357
            2016-12-20 19:20:05: (log.c.217) server started
            
            

            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
            • AhnHELA
              AhnHEL
              last edited by

              1. Port Forward rules look proper

              LAN TCP * * 10.10.10.1 80 (HTTP)         127.0.0.1   8081 pfB DNSBL - DO NOT EDIT  
              LAN TCP * * 10.10.10.1 443 (HTTPS) 127.0.0.1   8443 pfB DNSBL - DO NOT EDIT

              2. I have the DNSBL Firewall Rule checkbox enabled with all interfaces selected but there are no rules listed in my Floating Rules Tab.

              3. dnsbl_error.log is empty.

              AhnHEL (Angel)

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

                And your  /var/unbound/pfb_dnsbl_lighty.conf looks like this ?

                #
                #pfBlockerNG Lighttpd DNSBL configuration file
                #
                server.bind			= "0.0.0.0"
                server.port			= "8081"
                server.event-handler		= "freebsd-kqueue"
                server.network-backend		= "freebsd-sendfile"
                server.dir-listing		= "disable"
                server.document-root		= "/usr/local/www/pfblockerng/www/"
                server.errorlog			= "/var/log/pfblockerng/dnsbl_error.log"
                server.pid-file			= "/var/run/dnsbl.pid"
                server.modules			= ( "mod_access", "mod_fastcgi", "mod_rewrite" )
                
                server.indexfiles		= ( "index.php" )
                mimetype.assign			= ( ".html" => "text/html", ".gif" => "image/gif" )
                url.access-deny			= ( "~", ".inc" )
                fastcgi.server			= ( ".php" => ( "localhost" => ( "socket" => "/var/run/php-fpm.socket", "broken-scriptfilename" => "enable" ) ) )
                
                debug.log-condition-handling	= "enable"
                
                $HTTP["host"] =~ ".*" {
                	url.rewrite-once = ( ".*" => "index.php" )
                }
                
                $SERVER["socket"] == "0.0.0.0:8443" {
                	ssl.engine		= "enable"
                	ssl.pemfile		= "/var/unbound/dnsbl_cert.pem"
                	ssl.use-sslv2		= "disable"
                	ssl.use-sslv3		= "disable"
                	ssl.honor-cipher-order	= "enable"
                	ssl.cipher-list		= "AES128+EECDH:AES256+EECDH:AES128+EDH:AES256+EDH:AES128-SHA:AES256-SHA:!aNULL:!eNULL:!DSS"
                
                	$HTTP["host"] =~ ".*" {
                		url.rewrite-once = ( ".*" => "index.php" )
                	}
                }
                
                $SERVER["socket"] == "10.10.10.1:80" {
                	$HTTP["host"] =~ ".*" {
                		url.rewrite-once = ( ".*" => "index.php" )
                	}
                }
                
                $SERVER["socket"] == "10.10.10.1:443" {
                	ssl.engine		= "enable"
                	ssl.pemfile		= "/var/unbound/dnsbl_cert.pem"
                	ssl.use-sslv2		= "disable"
                	ssl.use-sslv3		= "disable"
                	ssl.honor-cipher-order	= "enable"
                	ssl.cipher-list		= "AES128+EECDH:AES256+EECDH:AES128+EDH:AES256+EDH:AES128-SHA:AES256-SHA:!aNULL:!eNULL:!DSS"
                
                	$HTTP["host"] =~ ".*" {
                		url.rewrite-once = ( ".*" => "index.php" )
                	}
                }
                
                

                Also check to see if there is other /usr/local/sbin/lighttpd_pfb running

                ps aux | grep lighttpd

                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
                • AhnHELA
                  AhnHEL
                  last edited by

                  No.

                  I'm missing the ending of your version.  The below is omitted from mine:

                  $SERVER["socket"] == "10.10.10.1:80" {
                  	$HTTP["host"] =~ ".*" {
                  		url.rewrite-once = ( ".*" => "index.php" )
                  	}
                  }
                  
                  $SERVER["socket"] == "10.10.10.1:443" {
                  	ssl.engine		= "enable"
                  	ssl.pemfile		= "/var/unbound/dnsbl_cert.pem"
                  	ssl.use-sslv2		= "disable"
                  	ssl.use-sslv3		= "disable"
                  	ssl.honor-cipher-order	= "enable"
                  	ssl.cipher-list		= "AES128+EECDH:AES256+EECDH:AES128+EDH:AES256+EDH:AES128-SHA:AES256-SHA:!aNULL:!eNULL:!DSS"
                  
                  	$HTTP["host"] =~ ".*" {
                  		url.rewrite-once = ( ".*" => "index.php" )
                  	}
                  }
                  

                  AhnHEL (Angel)

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

                    Well I am running the Dev version  ::)

                    I would disable pfBlockerNG AND DNSBL, then reinstall pfBlockerNG and check the installation log to see if something breaks.

                    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
                    • AhnHELA
                      AhnHEL
                      last edited by

                      Thx for your help.  I'll start from scratch and report back.

                      AhnHEL (Angel)

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

                        One last thing ? Are you using Unbound (and not DNS Forwarder)?

                        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
                        • AhnHELA
                          AhnHEL
                          last edited by

                          Yes, I am using Unbound

                          Unchecked retain settings, Saved and uninstalled/reinstalled.  Not getting any errors at all but still cant get the DNSBL service to start.  Maybe someone else can chime in who's on 2.4 who is possibly getting the same issue to confirm.

                          AhnHEL (Angel)

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

                            Check Diagnostics / Sockets to see if some other process would have the same ports open

                            root 	lighttpd_p 	4228 	5 	tcp4 	*:8081 	*:*
                            root 	lighttpd_p 	4228 	6 	tcp4 	*:8443 	*:*
                            

                            You can also try this in a shell to see if it report error.

                            /usr/local/etc/rc.d/dnsbl.sh restart
                            

                            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
                            • AhnHELA
                              AhnHEL
                              last edited by

                              No other services using those ports

                              Using the restart command gives me:

                              2016-12-20 21:00:48: (network.c.603) SSL: couldn't read X509 certificate from '/var/unbound/dnsbl_cert.pem'

                              AhnHEL (Angel)

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

                                Does /var/unbound/dnsbl_cert.pem exist?

                                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
                                • AhnHELA
                                  AhnHEL
                                  last edited by

                                  Yup, its there.

                                  AhnHEL (Angel)

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

                                    and it looks like a certificate with

                                    -----BEGIN PRIVATE KEY-----
                                    
                                    ...
                                    
                                    -----END PRIVATE KEY-----
                                    -----BEGIN CERTIFICATE-----
                                    
                                    ...
                                    
                                    -----END CERTIFICATE-----
                                    
                                    

                                    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
                                    • AhnHELA
                                      AhnHEL
                                      last edited by

                                      Looks like this:

                                      –---BEGIN PRIVATE KEY-----

                                      .....

                                      -----END PRIVATE KEY-----

                                      AhnHEL (Angel)

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

                                        Delete the file and do a Force Update to see if this fixes it.

                                        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
                                        • AhnHELA
                                          AhnHEL
                                          last edited by

                                          I've confirmed that it was deleted, Force Updated and confirmed that it get recreated.

                                          Recreates the same type of format of key with just Begin and End Private Key.

                                          Comes up with the same couldnt read x509 certificate error as before when trying to restart

                                          AhnHEL (Angel)

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

                                            Can you try to use the pem from another 2.3.2 system an test with it.

                                            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
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.