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

                Go back to the screenshot. Really.

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

                  I found the problem it was the screenshot I did I typo in my directory area

                  Thank you and sorry for the posts regarding this

                  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
                  • N
                    neonmatt
                    last edited by

                    Is there a suggested base directory for the patch mentioned earlier?

                    I'm pretty new and trying my best, but I can't figure this part out.  I looked at the screen shots and it shows /etc/inc, yet I cannot progress to the next step of the instructions (install…).

                    Thank you in advance for your time, I appreciate your comments.

                    "The art of war teaches us to rely not on the likelihood of the enemy's not coming, but on our own readiness to receive him; not on the chance of his not attacking, but rather on the fact that we have made our position unassailable."

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

                      It's /etc/inc/ dir just like the screenshot shows.

                      Save the patch then click on test (see what it returns)  then apply it.

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

                      Help a community developer! ;D

                      1 Reply Last reply Reply Quote 0
                      • N
                        neonmatt
                        last edited by

                        Thank you for your reply, Marc :) With some help, it is now up and going.

                        I'm going to go into the corner now and hang my head in shame lol.

                        "The art of war teaches us to rely not on the likelihood of the enemy's not coming, but on our own readiness to receive him; not on the chance of his not attacking, but rather on the fact that we have made our position unassailable."

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

                          This is working great great!

                          Thank you BBcan!

                          Thanks marcelloc and doktornotor for showing how to get this downloaded and installed.

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

                            Someone should make a page on how to use this on

                            https://doc.pfsense.org/index.php/PfblockerNG

                            I got it running just trying to get the lists I put in to block like the old did. Still more testing on 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
                            • C
                              Cino
                              last edited by

                              I think the first steps is for this package to become an Official pfSense package.. before anything else

                              Its use at your own risk. I'll help out with support/tips once its official but until then, I can't. I don't want to be responsible if my advice breaks your box. It is pretty easy to use, just read the pages ;-) Everything you need to know if there

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

                                @marcelloc - Thanks a million for the steps to install pfBlockerNG. I was just a tad disappointed to see that the installed version doesn't have the DNSBL tabs. Is there any way to get the version that's referenced in this post?

                                Thanks,
                                MediocreFred.

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

                                  It's not merged yet and still in the testing phase

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

                                    @MediocreFred:

                                    I was just a tad disappointed to see that the installed version doesn't have the DNSBL tabs.

                                    DNSBL - I am still developing this at the moment.

                                    pfBlockerNG v1.0 still needs to be reviewed by the Devs for it to be an Official pkg.

                                    So I expect that I will release DNSBL in v2.0. I also expect to have easylist AdBlock plus integrated into the pkg. It won't have all of those features, but it will pull all of the AdBlock domains for blocking.

                                    "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
                                    • P
                                      Pistolero
                                      last edited by

                                      if I restore the config from the old pfblocker package, will NG pick it up? Or do I have to reconfigure it from scratch?

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

                                        You'll have to configure it from scratch. Its a brand new package, separate from pfBlocker

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

                                          @BBcan177:

                                          @MediocreFred:

                                          I was just a tad disappointed to see that the installed version doesn't have the DNSBL tabs.

                                          So I expect that I will release DNSBL in v2.0. I also expect to have easylist AdBlock plus integrated into the pkg. It won't have all of those features, but it will pull all of the AdBlock domains for blocking.

                                          Ah you liked my idea and think you can bring in those lists? They are not standard like CIDR or IP lists.  That would be amazing.

                                          Wonder if there could be history little long in the widget on home page so you can refresh screen and not zero out all the hits blocked? Maybe option for how long you want to keep or clear each time refresh for those that like that. 
                                          The Alerts page also maybe could have some range of days you would like to see. Maybe the widget has direct link to that page with the logs link you have

                                          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
                                          • BBcan177B
                                            BBcan177 Moderator
                                            last edited by

                                            @Topper727:

                                            They are not standard like CIDR or IP lists.  That would be amazing.

                                            Yes DNSBL is already designed to handle domain names. Take a look at the Link in the post above. I have the most common formats already working, I have played with AdBlock plus list about a month ago, but put it aside for now, as it's in a non-standard format. I want to get the key parts of the code working first before spending more time on this AdBlock feature.. But it is on to todo list. So this will be released in v2.0 of pfBNG.

                                            Wonder if there could be history little long in the widget on home page so you can refresh screen and not zero out all the hits blocked? Maybe option for how long you want to keep or clear each time refresh for those that like that.

                                            The widget counts are "0" when the filter_reload is executed. So the design pfBNG is to only clear the widget when there are rules changes. So if the rules remain static, the widget counts will continue to increase without being cleared… This is the design of pfctl as that is where the counts are queried from.

                                            The Alerts page also maybe could have some range of days you would like to see. Maybe the widget has direct link to that page with the logs link you have

                                            The Alerts tab is not the place to handle queries of that nature. The best would be to send the logs to a remote syslog server for further analysis and correlation.  The Alerts Tab references the pfSense Firewall log, which in itself doesn't hold data for very long.

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