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

    PfBlockerNG v2.0 w/DNSBL

    Scheduled Pinned Locked Moved pfBlockerNG
    1.1k Posts 192 Posters 1.6m 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.
    • gnitingG
      gniting
      last edited by

      I'm looking to get started with PfBlockerNG but am confused as to which version I should get started with, the "dev" version or the stable one? Any pointers on differences between the two will be immensely helpful.

      Thanks.

      BBcan177B 1 Reply Last reply Reply Quote 0
      • BBcan177B
        BBcan177 Moderator @gniting
        last edited by

        @ibbetsion said in PfBlockerNG v2.0 w/DNSBL:

        I'm looking to get started with PfBlockerNG but am confused as to which version I should get started with, the "dev" version or the stable one? Any pointers on differences between the two will be immensely helpful.

        https://forum.netgate.com/topic/135708/is-pfblockerng-devel-stable

        "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/

        gnitingG 1 Reply Last reply Reply Quote 0
        • gnitingG
          gniting @BBcan177
          last edited by

          @bbcan177 said in PfBlockerNG v2.0 w/DNSBL:

          @ibbetsion said in PfBlockerNG v2.0 w/DNSBL:

          I'm looking to get started with PfBlockerNG but am confused as to which version I should get started with, the "dev" version or the stable one? Any pointers on differences between the two will be immensely helpful.

          https://forum.netgate.com/topic/135708/is-pfblockerng-devel-stable

          Thank you.

          1 Reply Last reply Reply Quote 0
          • A
            anttechs
            last edited by

            I love it and it even has the BBC in the list lol
            I am I dying to get more Anti corp lists like what you see on filterlist.com because of spying but I get a lot of :

            [ pfB_PRI1_v4 - BBC_C2_Agr_v4 ] Download FAIL [ 02/03/19 11:04:34 ] 
            [ pfB_PRI1_v4 - Talos_BL_v4 ] Download FAIL [ 02/03/19 11:04:19 ]
            [ pfB_PRI1_v4 - CINS_army_v4 ] Download FAIL [ 02/03/19 11:04:02 ]
            [ pfB_PRI1_v4 - BBC_C2_v4 ] Download FAIL [ 02/03/19 11:03:46 ]
            [ DNSBL_NSA - NSAblocklist1 ] Download FAIL [ 02/03/19 11:03:30 ]
            [ DNSBL_facebook - FB2 ] Download FAIL [ 02/03/19 11:03:15 ]

            and this

            [ BBC_C2_Agr_v4 ] Downloading update . cURL Error: 60
            SSL certificate problem: self signed certificate Retry in 5 seconds...
            . cURL Error: 60
            SSL certificate problem: self signed certificate Retry in 5 seconds...
            . cURL Error: 60
            SSL certificate problem: self signed certificate Retry in 5 seconds...
            .. unknown http status code | 0

            [ pfB_PRI1_v4 - BBC_C2_Agr_v4 ] Download FAIL [ 02/03/19 11:04:34 ]
            [ osint.bambenekconsulting.com ] Domain listed in DNSBL

            The Following List has been REMOVED [ BBC_C2_Agr_v4 ]

            and I have no idea if I'm doing something wrong or it's just the site?

            or its because it's not in the right format?

            But its still going great and so much simpler to use.
            Great work.

            I do wonder if this is 0.0.0.0 example.com is ok to put as a list?
            I could just ake my own list but then they would not get updated.

            I want to block all companies like google, apple, Microsoft, NSA Government, and so on.
            I just use a paiid vpn to reach the outside world.

            Intel(R) Celeron(R) CPU J1900 @ 1.99GHz
            Current: 1992 MHz, Max: 1993 MHz
            4 CPUs: 1 package(s) x 4 core(s)
            AES-NI CPU Crypto: No
            8 Gig RAM
            250GB SSD

            https://ant-techs.is/ip-blocklists

            1 Reply Last reply Reply Quote 0
            • M
              MarcoP
              last edited by

              @anttechs edit filerlist to filterlists ;)

              About the failed downloads, if i remember right some list does include other list' IP, so if you have WAN as Outbound interface in pfBlockerNG these IPs are going to be blocked. The same should apply for the SSL error.

              1 Reply Last reply Reply Quote 0
              • A
                anttechs
                last edited by

                Many thanks ;)
                I'm still learning everyday lol
                mines on LAN Outbound Firewall Rules reject.
                but Wan is set to default

                I think I get it

                I disabled TLD because I had .com and most of the others in there, I may be going over the top lol

                Intel(R) Celeron(R) CPU J1900 @ 1.99GHz
                Current: 1992 MHz, Max: 1993 MHz
                4 CPUs: 1 package(s) x 4 core(s)
                AES-NI CPU Crypto: No
                8 Gig RAM
                250GB SSD

                https://ant-techs.is/ip-blocklists

                M 1 Reply Last reply Reply Quote 0
                • M
                  MarcoP @anttechs
                  last edited by

                  @anttechs said in PfBlockerNG v2.0 w/DNSBL:

                  Many thanks ;)

                  You're welcome

                  I disabled TLD because I had .com and most of the others in there

                  Yeap, that would be it!

                  Cheers

                  1 Reply Last reply Reply Quote 1
                  • B
                    beachbum2021
                    last edited by

                    can a dev confirm whether or not snort/suricata are available in the 2.5 dev? they are installable but not listed in services or showing in top

                    1 Reply Last reply Reply Quote 0
                    • C
                      ck42
                      last edited by ck42

                      Was using the non-devel package and began seeing the crashes.

                      Uninstalled and installed the Devel package (2.2.5_37). Still seeing this. (2.4.5-p1)

                      Crash report details:

                      PHP Errors:
                      [13-Nov-2020 12:33:48 America/New_York] PHP Fatal error:  Uncaught Error: Cannot create references to/from string offsets in /usr/local/pkg/pfblockerng/pfblockerng_install.inc:113
                      Stack trace:
                      #0 /etc/inc/pkg-utils.inc(770) : eval()'d code(1): include_once()
                      #1 /etc/inc/pkg-utils.inc(770): eval()
                      #2 /etc/inc/pkg-utils.inc(858): eval_once('include_once('/...')
                      #3 /etc/rc.packages(74): install_package_xml('pfBlockerNG-dev...')
                      #4 {main}
                        thrown in /usr/local/pkg/pfblockerng/pfblockerng_install.inc on line 113
                      
                      

                      /etc/rc.packages: New alert found: PHP ERROR: Type: 1, File: /usr/local/pkg/pfblockerng/pfblockerng_install.inc, Line: 113, Message: Uncaught Error: Cannot create references to/from string offsets in /usr/local/pkg/pfblockerng/pfblockerng_install.inc:113 Stack trace: #0 /etc/inc/pkg-utils.inc(770) : eval()'d code(1): include_once() #1 /etc/inc/pkg-utils.inc(770): eval() #2 /etc/inc/pkg-utils.inc(858): eval_once('include_once('/...') #3 /etc/rc.packages(74): install_package_xml('pfBlockerNG-dev...') #4 {main} thrown

                      Anything I need to worry about?

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

                        if you look at /usr/local/pkg/pfblockerng/pfblockerng_install.inc

                        it's about the cron jobs removal.

                        // Remove discontinued pfBlockerNG CRON job
                        $pfb_cron = &$config['cron']['item'];
                        if (isset($pfb_cron)) {
                        	foreach ($pfb_cron as $key => $item) {
                        		if (strpos($item['command'], 'pfblockerng.php dc >>') !== FALSE) {
                        			unset($pfb_cron[$key]);
                        		}
                        	}
                        }
                        

                        Have a look at /etc/crontab, you can also install the Cron package.

                        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

                        C 1 Reply Last reply Reply Quote 0
                        • C
                          ck42 @RonpfS
                          last edited by ck42

                          @RonpfS
                          These are the current pfBlockerNG cron entries

                          # pfSense specific crontab entries
                          # Created: November 13, 2020, 2:10 pm
                          #
                          
                          0       0       4-10    *       *       root    /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php dcc >> /var/log/pfblockerng/extras.log 2>&1
                          0       *       *       *       *       root    /usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php cron >> /var/log/pfblockerng/pfblockerng.log 2>&1
                          

                          What I don't know though is...are these two entries part of the new -Devel installation or are these the old discontinued ones - that it's supposed to remove?
                          Based on the comment line, you can see that the comments were added today, but can't say for certain if the cron entries are pre-existing or not.

                          Based on you having the -Devel version also installed and guessing that you are not seeing this error, what does your pfBlocker crontab entry look like? Match mine?

                          I don't speak PHP, so not quite sure how to evaluate that 'if' statement.

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

                            @ck42
                            I have one more

                            0	11	4-10	*	*	root	/usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php dcc >> /var/log/pfblockerng/extras.log 2>&1
                            0	22	*	*	*	root	/usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php bl shallalist,ut1 >> /var/log/pfblockerng/extras.log 2>&1
                            15	2,5,8,11,14,17,20,23	*	*	*	root	/usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php cron >> /var/log/pfblockerng/pfblockerng.log 2>&1
                            
                            

                            Maybe disabling pfblockerNG will delete the pfb entries. When you install, was pfblockerNG disabled ?
                            Maybe try to install the package with pfblockerNG disabled again.

                            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

                            C 1 Reply Last reply Reply Quote 0
                            • C
                              ck42 @RonpfS
                              last edited by ck42

                              @RonpfS
                              Disabling pfBlocker did remove the cron entries. Re-enabling did not create that third one that you have though.
                              Next, I disabled it and then re-installed it (did not uninstall and then install again manually, just used the re-install option in the package manager). Then enabled it. Still only have the two cron entries. But.....I don't seem to be seeing the crash message any longer. Interesting.
                              I'll keep an eye on it and see if this is permanent.
                              Still curious though about your third cron entry. Wondering if this is maybe due to an additional configuration somewhere in your pfBlocker configuration that you enabled that I don't have. If so, then it's not a concern.

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

                                @ck42 The entry is related to Firewall / pfBlockerNG/ DNSBL / DNSBL Category Blacklist.

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