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 48.9k 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.
    • RonpfSR
      RonpfS
      last edited by

      It should be located in /etc/inc

      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

        Mine didnt install the xmlrpc.inc file on its own with 2.4.  I ran the command to download it, installed the pfblockerng package but cant seem to get dnsbl to run.  Not seeing any errors in logs anywhere.

        My settings are similar to whats posted in this guide using pfBlockerng as an Ad Blocker.  Force Reloading/Updating has not fixed issue either nor manually updating MaxMind.

        https://www.fredmerc.com/2016/07/pfsense-adblock-using-pfblockerng-guide/

        dnsbl.jpg
        dnsbl.jpg_thumb

        AhnHEL (Angel)

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

          1/ It is not supposed to install xmlrpc.inc. If you don't see any errors then what's your problem?
          2/ The GeoIP stuff has nothing to do with DNSBL.

          1 Reply Last reply Reply Quote 0
          • AhnHELA
            AhnHEL
            last edited by

            @doktornotor:

            1/ It is not supposed to install xmlrpc.inc. If you don't see any errors then what's your problem?
            2/ The GeoIP stuff has nothing to do with DNSBL.

            Its not Ad Blocking anything unlike my 2.3 Installs.  With or without the xmlrpc.inc, DNSBL refuses to run.

            AhnHEL (Angel)

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

              @AhnHEL:

              Its not Ad Blocking anything unlike my 2.3 Installs.  With or without the xmlrpc.inc, DNSBL refuses to run.

              Did you look in /var/log/pfblockerng/pfblockerng.log to see what fails ?

              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

                This is whats in the pfblockerng.log:

                UPDATE PROCESS START [ 12/20/16 18:23:57 ]
                
                ===[  DNSBL Process  ]================================================
                
                [ easylist ]		 Reload . completed ..
                  ----------------------------------------------------------------------
                  Orig.    Unique     # Dups     # White    # Alexa    Final                
                  ----------------------------------------------------------------------
                  6546     6211       0          0          0          6211                 
                  ----------------------------------------------------------------------
                
                [ easylistprivacy ]	 Reload . completed ..
                  ----------------------------------------------------------------------
                  Orig.    Unique     # Dups     # White    # Alexa    Final                
                  ----------------------------------------------------------------------
                  2680     2661       20         0          0          2641                 
                  ----------------------------------------------------------------------
                
                [ hphosts ]		 Reload [ 12/20/16 18:23:58 ] . completed ..
                  ----------------------------------------------------------------------
                  Orig.    Unique     # Dups     # White    # Alexa    Final                
                  ----------------------------------------------------------------------
                  47965    47962      1333       0          0          46629                
                  ----------------------------------------------------------------------
                
                [ yoyo ]		 Reload [ 12/20/16 18:23:59 ] . completed ..
                  ----------------------------------------------------------------------
                  Orig.    Unique     # Dups     # White    # Alexa    Final                
                  ----------------------------------------------------------------------
                  2364     2364       1445       0          0          919                  
                  ----------------------------------------------------------------------
                
                [ adaway ]		 Reload [ 12/20/16 18:24:00 ] . completed ..
                  ----------------------------------------------------------------------
                  Orig.    Unique     # Dups     # White    # Alexa    Final                
                  ----------------------------------------------------------------------
                  411      409        282        0          0          127                  
                  ----------------------------------------------------------------------
                
                [ cameleon ]		 Reload . completed ..
                  ----------------------------------------------------------------------
                  Orig.    Unique     # Dups     # White    # Alexa    Final                
                  ----------------------------------------------------------------------
                  21194    21194      6124       0          0          15070                
                  ----------------------------------------------------------------------
                
                ------------------------------------------
                Assembling database... completed
                Validating database... completed [ 12/20/16 18:24:02 ]
                Reloading Unbound.... completed
                DNSBL update [ 71597 | PASSED  ]... completed [ 12/20/16 18:24:03 ]
                ------------------------------------------Restarting Service DNSBL...
                
                ===[  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 ]
                
                ===[ DNSBL Domain/IP Counts ] ===================================
                
                   71597 total
                   46629 /var/db/pfblockerng/dnsbl/hphosts.txt
                   15070 /var/db/pfblockerng/dnsbl/cameleon.txt
                    6211 /var/db/pfblockerng/dnsbl/easylist.txt
                    2641 /var/db/pfblockerng/dnsbl/easylistprivacy.txt
                     919 /var/db/pfblockerng/dnsbl/yoyo.txt
                     127 /var/db/pfblockerng/dnsbl/adaway.txt
                
                IPv4 alias tables IP count
                -----------------------------
                0
                
                IPv6 alias tables IP count
                -----------------------------
                0
                
                Alias table IP Counts
                -----------------------------
                
                pfSense Table Stats
                -------------------
                table-entries hard limit  2000000
                Table Usage Count         83312
                
                 UPDATE PROCESS ENDED
                
                

                And just got this on my GUI:

                Crash report begins.  Anonymous machine information:
                
                amd64
                11.0-RELEASE-p5
                FreeBSD 11.0-RELEASE-p5 #249 3443a71(RELENG_2_4): Sun Dec 18 04:25:13 CST 2016     root@buildbot2.netgate.com:/builder/ce/tmp/obj/builder/ce/tmp/FreeBSD-src/sys/pfSense
                
                Crash report details:
                
                PHP Errors:
                [20-Dec-2016 18:15:30 America/New_York] PHP Warning:  array_map(): Argument #2 should be an array in /usr/local/www/pfblockerng/pfblockerng_log.php on line 184
                [20-Dec-2016 18:15:30 America/New_York] PHP Stack trace:
                [20-Dec-2016 18:15:30 America/New_York] PHP   1\. {main}() /usr/local/www/pfblockerng/pfblockerng_log.php:0
                [20-Dec-2016 18:15:30 America/New_York] PHP   2\. array_map() /usr/local/www/pfblockerng/pfblockerng_log.php:184
                [20-Dec-2016 18:15:30 America/New_York] PHP Warning:  implode(): Argument must be an array in /usr/local/www/pfblockerng/pfblockerng_log.php on line 184
                [20-Dec-2016 18:15:30 America/New_York] PHP Stack trace:
                [20-Dec-2016 18:15:30 America/New_York] PHP   1\. {main}() /usr/local/www/pfblockerng/pfblockerng_log.php:0
                [20-Dec-2016 18:15:30 America/New_York] PHP   2\. implode() /usr/local/www/pfblockerng/pfblockerng_log.php:184
                [20-Dec-2016 18:15:49 America/New_York] PHP Warning:  array_map(): Argument #2 should be an array in /usr/local/www/pfblockerng/pfblockerng_log.php on line 184
                [20-Dec-2016 18:15:49 America/New_York] PHP Stack trace:
                [20-Dec-2016 18:15:49 America/New_York] PHP   1\. {main}() /usr/local/www/pfblockerng/pfblockerng_log.php:0
                [20-Dec-2016 18:15:49 America/New_York] PHP   2\. array_map() /usr/local/www/pfblockerng/pfblockerng_log.php:184
                [20-Dec-2016 18:15:49 America/New_York] PHP Warning:  implode(): Argument must be an array in /usr/local/www/pfblockerng/pfblockerng_log.php on line 184
                [20-Dec-2016 18:15:49 America/New_York] PHP Stack trace:
                [20-Dec-2016 18:15:49 America/New_York] PHP   1\. {main}() /usr/local/www/pfblockerng/pfblockerng_log.php:0
                [20-Dec-2016 18:15:49 America/New_York] PHP   2\. implode() /usr/local/www/pfblockerng/pfblockerng_log.php:184
                [20-Dec-2016 18:15:52 America/New_York] PHP Warning:  array_map(): Argument #2 should be an array in /usr/local/www/pfblockerng/pfblockerng_log.php on line 184
                [20-Dec-2016 18:15:52 America/New_York] PHP Stack trace:
                [20-Dec-2016 18:15:52 America/New_York] PHP   1\. {main}() /usr/local/www/pfblockerng/pfblockerng_log.php:0
                [20-Dec-2016 18:15:52 America/New_York] PHP   2\. array_map() /usr/local/www/pfblockerng/pfblockerng_log.php:184
                [20-Dec-2016 18:15:52 America/New_York] PHP Warning:  implode(): Argument must be an array in /usr/local/www/pfblockerng/pfblockerng_log.php on line 184
                [20-Dec-2016 18:15:52 America/New_York] PHP Stack trace:
                [20-Dec-2016 18:15:52 America/New_York] PHP   1\. {main}() /usr/local/www/pfblockerng/pfblockerng_log.php:0
                [20-Dec-2016 18:15:52 America/New_York] PHP   2\. implode() /usr/local/www/pfblockerng/pfblockerng_log.php:184
                [20-Dec-2016 18:16:14 America/New_York] PHP Warning:  array_map(): Argument #2 should be an array in /usr/local/www/pfblockerng/pfblockerng_log.php on line 184
                [20-Dec-2016 18:16:14 America/New_York] PHP Stack trace:
                [20-Dec-2016 18:16:14 America/New_York] PHP   1\. {main}() /usr/local/www/pfblockerng/pfblockerng_log.php:0
                [20-Dec-2016 18:16:14 America/New_York] PHP   2\. array_map() /usr/local/www/pfblockerng/pfblockerng_log.php:184
                [20-Dec-2016 18:16:14 America/New_York] PHP Warning:  implode(): Argument must be an array in /usr/local/www/pfblockerng/pfblockerng_log.php on line 184
                [20-Dec-2016 18:16:14 America/New_York] PHP Stack trace:
                [20-Dec-2016 18:16:14 America/New_York] PHP   1\. {main}() /usr/local/www/pfblockerng/pfblockerng_log.php:0
                [20-Dec-2016 18:16:14 America/New_York] PHP   2\. implode() /usr/local/www/pfblockerng/pfblockerng_log.php:184
                [20-Dec-2016 18:16:16 America/New_York] PHP Warning:  array_map(): Argument #2 should be an array in /usr/local/www/pfblockerng/pfblockerng_log.php on line 184
                [20-Dec-2016 18:16:16 America/New_York] PHP Stack trace:
                [20-Dec-2016 18:16:16 America/New_York] PHP   1\. {main}() /usr/local/www/pfblockerng/pfblockerng_log.php:0
                [20-Dec-2016 18:16:16 America/New_York] PHP   2\. array_map() /usr/local/www/pfblockerng/pfblockerng_log.php:184
                [20-Dec-2016 18:16:16 America/New_York] PHP Warning:  implode(): Argument must be an array in /usr/local/www/pfblockerng/pfblockerng_log.php on line 184
                [20-Dec-2016 18:16:16 America/New_York] PHP Stack trace:
                [20-Dec-2016 18:16:16 America/New_York] PHP   1\. {main}() /usr/local/www/pfblockerng/pfblockerng_log.php:0
                [20-Dec-2016 18:16:16 America/New_York] PHP   2\. implode() /usr/local/www/pfblockerng/pfblockerng_log.php:184
                
                

                AhnHEL (Angel)

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

                  The crash report was probably generated when you looked at pfBlockerng.log.
                  The update output looks ok, if you go to Status / Service can you start dnsbl?

                  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

                    The cog wheel spins for a short while then just stops with the Service never starting, and nothing more in any of the logs.

                    AhnHEL (Angel)

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

                      The log file might be because you tried to open a missing file. What was the file you were trying to look at?

                      On the DNSBL side, what is you VIP configuration ? Did you try to ping the VIP?

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