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

    PfBlockerNG

    Scheduled Pinned Locked Moved pfBlockerNG
    1.2k Posts 211 Posters 2.1m 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.
    • marcellocM
      marcelloc
      last edited by

      If you want to test pfBlockerNG on 2.2,

      create this patch using systempatches package.

      
      --- pkg-utils.orig.inc       2015-01-27 14:27:38.000000000 +0000
      +++ pkg-utils.inc      2015-01-27 14:27:50.000000000 +0000
      @@ -624,6 +624,7 @@
                      if (isset($pkg_info['maximum_version']))
                              $compatible = $compatible && (pfs_version_compare("", $version, $pkg_info['maximum_version']) <= 0);
      
      +               $compatible = true;
                      if (!$compatible) {
                              log_error(sprintf(gettext('Package %s is not supported on this version.'), $pkg_info['name']));
                              $static_output .= sprintf(gettext("Package %s is not supported on this version."), $pkg_info['name']);
      
      

      Note: Do not forget to click test and apply the patch after creating/saving  it.  ;)

      then install package with your pfsense url

      https://YOUR_PFSENSE_ADDRESS_HERE/pkg_mgr_install.php?id=pfBlockerNG
      

      And of cource, DO AT YOUR OWN RISK  :)

      pfblockerng_install_patch.png
      pfblockerng_install_patch.png_thumb
      pfblockerng_install.png
      pfblockerng_install.png_thumb

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

      Help a community developer! ;D

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

        Your instructions are great, they're for dummies like me.

        It's greatly appreciated! I'm going to try and hit the datacenter this weekend. I'm doing a fresh install and moving from 2.1.5 (32bit) to 2.2 (64bit). I'll try installing pfBlockerNG then.

        Thank you!

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

          is it  compatible with 32bit version?

          Snímka.JPG
          Snímka.JPG_thumb

          pfsense runing in virtual, on HP N54L microserver, 2G RAM, 60G disk, WAN, LAN, DMZ, Wifi, OpenVPN server + client, suricata, pfblocker

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

            The package? Sure. The pkg-utils.inc patch? No idea, never tried.

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

              i try install pfblockerng on 32bit pfsense with this patch and it failed.

              pfsense runing in virtual, on HP N54L microserver, 2G RAM, 60G disk, WAN, LAN, DMZ, Wifi, OpenVPN server + client, suricata, pfblocker

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

                Edit: They aren't built for 2.1.5. Only for 2.2

                http://files.pfsense.org/packages/10/All/

                
                pfblockerng-1.6.3_1-amd64.pbi                      27-Nov-2014 13:15             2743546
                pfblockerng-1.6.3_1-amd64.pbi.sha256               27-Nov-2014 13:15                  65
                pfblockerng-1.6.3_1-i386.pbi                       27-Nov-2014 13:23             2909780
                pfblockerng-1.6.3_1-i386.pbi.sha256                27-Nov-2014 13:23                  65
                
                

                i dont see anything in http://files.pfsense.org/packages/8/All/ for 2.1.5

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

                  ok, thx. this make sense to me.

                  pfsense runing in virtual, on HP N54L microserver, 2G RAM, 60G disk, WAN, LAN, DMZ, Wifi, OpenVPN server + client, suricata, pfblocker

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

                    @Cino:

                    I dont believe the pbi's are built for 32bit yet

                    They certainly are, see https://files.pfsense.org/packages/10/All/

                    Looking at the pkg-utils.inc file, you'd rather need $force_install = true; at proper place instead.

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

                      @doktornotor:

                      @Cino:

                      I dont believe the pbi's are built for 32bit yet

                      They certainly are, see https://files.pfsense.org/packages/10/All/

                      Looking at the pkg-utils.inc file, you'd rather need $force_install = true; at proper place instead.

                      I corrected my post… They are not created for 2.1.5

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

                        About time to upgrade. :P

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

                          than if is 32bit ready and i install on pfsense 2.2. release 32 bit i dont know why i cant install with posted patch.

                          pfsense runing in virtual, on HP N54L microserver, 2G RAM, 60G disk, WAN, LAN, DMZ, Wifi, OpenVPN server + client, suricata, pfblocker

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

                            Already posted a hint above. As said, never tested the patch, edit the version temporarily and move on.

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

                              @marian78:

                              i try install pfblockerng on 32bit pfsense with this patch and it failed.

                              Did you tested and applied the patch under systempatches? the screen I've sent show how to create the patch but you need to apply after saving.

                              Or edit file manually if you know how to handle with it.

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

                              Help a community developer! ;D

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

                                aaa ,stupig me. i forgot apply patch…...... sorry. Now installed....

                                pfsense runing in virtual, on HP N54L microserver, 2G RAM, 60G disk, WAN, LAN, DMZ, Wifi, OpenVPN server + client, suricata, pfblocker

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

                                  Uhm… censored

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

                                    ye, ******* :)

                                    pfsense runing in virtual, on HP N54L microserver, 2G RAM, 60G disk, WAN, LAN, DMZ, Wifi, OpenVPN server + client, suricata, pfblocker

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

                                      I've updated the install steps to make it easier :)

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

                                      Help a community developer! ;D

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

                                        Output of full patch apply test:
                                        /usr/bin/patch –directory=/ -t -p1 -i /var/patches/54c7f4a39c5e8.patch --check --forward --ignore-whitespace

                                        Hmm...  Looks like a unified diff to me...
                                        The text leading up to this was:

                                        -- pkg-utils.orig.inc      2015-01-27 14:27:38.000000000 +0000

                                        +++ pkg-utils.inc      2015-01-27 14:27:50.000000000 +0000
                                        No file to patch.  Skipping...
                                        Hunk #1 ignored at 624.
                                        1 out of 1 hunks ignored while patching pkg-utils.inc
                                        done
                                        Close

                                        Is the patch info I got when I tried to use your patch.  I am running 64 bit release 2.2

                                        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
                                          doktornotor Banned
                                          last edited by

                                          -p1 is obviously wrong with –directory=/

                                          Kindly use the System Patches package and see the screenshot above. If you cannot handle that, you probably should avoid doing similar changes in the first place.

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

                                            I did use SYSTEM patches and pasted that in the code window and hit Test patch and this is the result I got

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