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

    PfBlockerNG

    Scheduled Pinned Locked Moved pfBlockerNG
    1.2k Posts 210 Posters 1.8m 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.
    • M
      messerchmidt
      last edited by

      is this available to the public yet?

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

        @fragged:

        I believe the new package doesn't download lists every time you click save on the edit/add list page.

        Yes this is  'by Design'.  The process is single threaded, to ensure that only one process at a time updates the files. Allowing the possibility of pressing "Save" at the same time as "Cron" is running or expected to run, can cause data corruption. So when you press "save" it will just save the settings.

        The "Update" tab has a "Force Update" icon which will disable the Cron event and execute the download process. If Cron is active, it will not let you bypass that event, until its completed. You are able to see the complete Download process in the Update Window.

        Any errors will be recorded there, so debugging is fairly straight forward.

        You are also able to view the  pfblockerng.log  and  error.log  in the Log Browser Tab.

        "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
        • marcellocM
          marcelloc
          last edited by

          Pull request sent  :)

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

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

            For those of you that followed the bypass to install the Package, please follow these suggestions:

            1. Enable "Keep Settings" in the pfBlockerNG General Tab. On a Re-install, the first step is a De-Install of the package. So without enabling this setting, you will lose all configured settings on a "Re-Install".

            So please ensure that this is "Checked". You will need to hit "Save" to have it apply!!

            1. There is a v1.0 of pfBlockerNG Posted with a minor revision for an IBlock issue. I believe you will need to ensure that the bypass method used on the first Install, is activated before proceeding with the Update or the Re-Install will FAIL.

            Please ensure you Backup as always before proceeding with any Updates.

            "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
            • S
              samham
              last edited by

              I don't see the package listed yet!!!

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

                @samham:

                I don't see the package listed yet!!!

                Its not Official Yet.. I was referring to those Users who followed the Bypass methods in this thread to get it Installed.

                "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
                • S
                  samham
                  last edited by

                  marcelloc sent a pull request, I'm assuming it should be official shortly

                  1 Reply Last reply Reply Quote 0
                  • T
                    Topper727
                    last edited by

                    I seen it in packages today.  Got the update from it.

                    Dell 2950 g3 server
                    Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
                    Current: 2000 MHz, Max: 2667 MHz
                    8 CPUs: 2 package(s) x 4 core(s)
                    8152 MiB and 600meg 10k drive
                    Pfsense 2.4 .. Hoping to get the phpvirtualbox going again.

                    1 Reply Last reply Reply Quote 0
                    • D
                      digdug3
                      last edited by

                      @BBCan:

                      Thanks for mailing me I was (almost) missing all the fun  ;)
                      The package really needs to be released officially!

                      Great marcelloc pointed out the old pfblocker is now obsolete and should be replaced with pfBlockerNG.

                      1 Reply Last reply Reply Quote 0
                      • J
                        JasonJoel
                        last edited by

                        Not in my package list yet (just the old blocker package). Looking forward to it though!!

                        @Topper727:

                        I seen it in packages today.  Got the update from it.

                        1 Reply Last reply Reply Quote 0
                        • W
                          wcrowder
                          last edited by

                          See:
                          https://forum.pfsense.org/index.php?topic=86212.msg481358#msg481358

                          Make sure you read this entire thread.

                          @JasonJoel:

                          Not in my package list yet (just the old blocker package). Looking forward to it though!!

                          @Topper727:

                          I seen it in packages today.  Got the update from it.

                          1 Reply Last reply Reply Quote 0
                          • R
                            reggie14
                            last edited by

                            @wcrowder:

                            See:
                            https://forum.pfsense.org/index.php?topic=86212.msg481358#msg481358

                            Make sure you read this entire thread.

                            I'm confused.  Doesn't this post indicate that the package is being officially released now, and that we won't have to do anything special to download it?

                            1 Reply Last reply Reply Quote 0
                            • marcellocM
                              marcelloc
                              last edited by

                              The pull request needs to be merged by pfsense team before you can use it without any hacks.

                              Treinamentos de Elite: http://sys-squad.com

                              Help a community developer! ;D

                              1 Reply Last reply Reply Quote 0
                              • B
                                Bummer
                                last edited by

                                Ha, ha, ha… I was wondering the same thing too!

                                1 Reply Last reply Reply Quote 0
                                • B
                                  bfeitell
                                  last edited by

                                  I used the patch method to install pfBlockerNG, and it was working well on two machines until a reboot.  After a reboot the country block lists in /var/db/aliastables/ are all empty but for a single entry of 1.1.1.1.

                                  Forcing an update does not fetch the correct files, and no blocking is taking place.

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

                                    @bfeitell:

                                    I used the patch method to install pfBlockerNG, and it was working well on two machines until a reboot.

                                    Is this a Nano install where the /var folder is getting deleted on reboot?

                                    This is a question I have asked the Devs to find a solution for… As these files should be stored in the /var folder. The previous pfBlocker package used to store the files in the /usr/local folder. This issue is only limited to Nano and Ramdisk type installs.

                                    Run the following shell command to Re-Download the Maxmind Database, and restore the Country code files in the /var folder.

                                    php /usr/local/www/pfblockerng/pfblockerng.php dc

                                    Following that, execute a "Force Update"

                                    "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
                                    • marcellocM
                                      marcelloc
                                      last edited by

                                      @BBcan177:

                                      Is this a Nano install where the /var folder is getting deleted on reboot?

                                      I guess so.

                                      You may need a conf mount rw to backup data on package save.

                                      I found a long time ago a guide to run nanobsd on virtual machine. This way will be easier to debug cf installs.

                                      Treinamentos de Elite: http://sys-squad.com

                                      Help a community developer! ;D

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

                                        @marcelloc:

                                        You may need a conf mount rw to backup data on package save.

                                        I found a long time ago a guide to run nanobsd on virtual machine. This way will be easier to debug cf installs.

                                        Yes, I have a similar doc on that running a Nano in a VM. In this instance, there is nothing to debug.. The /var/db folder which contains the Maxmind Country files get wiped on reboot. I can make a hack way around it in the code which probably is not the best.

                                        This is a question I have posed to the Devs, but I am waiting on feedback for the best approach. I do not want to save these files to the /usr/local folder.

                                        Maybe could put it in the PBI Share Folder?

                                        "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
                                        • B
                                          bfeitell
                                          last edited by

                                          Yes indeed, it is a nano install.  Thank you for the fix!

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

                                            @BBcan177:

                                            The /var/db folder which contains the Maxmind Country files get wiped on reboot. I can make a hack way around it in the code which probably is not the best.
                                            This is a question I have posed to the Devs, but I am waiting on feedback for the best approach. I do not want to save these files to the /usr/local folder.
                                            Maybe could put it in the PBI Share Folder?

                                            The /var/db thing is rather unfortunate, not just b/c it's volatile but also since the directory is pretty huge. Takes over 1/3 of the default /var ramdisk.

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