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

      @BBcan177:

      Just to be clear, Selecting "Inbound" will not offer any protection and unless you have Open ports. These "Inbound" events are already being blocked by Default by pfSense.

      Can you put some huge bold red notice somewhere in the GUI? (Really hard to believe how many people keep missing basics…)

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

        @doktornotor:

        @BBcan177:

        Just to be clear, Selecting "Inbound" will not offer any protection and unless you have Open ports. These "Inbound" events are already being blocked by Default by pfSense.

        Can you put some huge bold red notice somewhere in the GUI? (Really hard to believe how many people keep missing basics…)

        But it may not be seen in IE

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

          @marcelloc:

          @wavetune:

          What's the best advice on this for achieving that?  If I edit the rule PFBlockerNG just destroys it on the Update.

          Did you tried alias only and then create a manual rule?

          Thanks for the reply.  I did try this but the  problem we have is that PFBlocker then puts it's rules first.  If I change the order in PFBlocker we then end up with all of our permit rules first.

          Here is the problem in a bit more detail with some examples, these are not the real rules but make it easier to see what is happening.

          PFBlocker Block all Romania
          Allow port 80 to host x.x.x.x
          Allow port 443 to host x.x.x.x

          So this would block Romania but allow the rest of the world into port 80 & 443

          Now we find that we have some IP's in Romania that need to be allowed in so we do this;

          PFBlocker Allow this RomaniaAllowedAliasList (PFBlocker allows all ports from those IP's)
          PFBlocker Block all Romania
          Allow port 80 to host x.x.x.x from anywhere
          Allow port 443 to host x.x.x.x from anywhere

          Looking at creating just an Alias list only with PFBlocker and a manual rule would give us this

          PFBlocker Block all Romania
          Allow port 80 to host x.x.x.x from RomaniaAllowedAliasList
          Allow port 80 to host x.x.x.x from anywhere
          Allow port 443 to host x.x.x.x from anywhere

          OR

          Allow port 80 to host x.x.x.x from RomaniaAllowedAliasList
          Allow port 80 to host x.x.x.x from anywhere
          Allow port 443 to host x.x.x.x from anywhere
          PFBlocker Block all Romania

          Cannot get the config to do this though;

          Allow port 80 to host x.x.x.x from RomaniaAllowedAliasList
          PFBlocker Block all Romania
          Allow port 80 to host x.x.x.x from anywhere
          Allow port 443 to host x.x.x.x from anywhere

          Unless I'm missing something?

          Thanks for you help

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

            @wavetune:

            @marcelloc:

            @wavetune:

            What's the best advice on this for achieving that?  If I edit the rule PFBlockerNG just destroys it on the Update.

            Did you tried alias only and then create a manual rule?

            Here is the problem in a bit more detail with some examples, these are not the real rules but make it easier to see what is happening.

            Hi wavetune,

            I think you should be able to do that with rule option "4" but you won't be able to set the Ports on the First rule with "Autorules".

            | pfB_Pass/Match | pfB_Block/Reject | pfSense Pass/Match |

            Allow port 80 to host x.x.x.x from RomaniaAllowedAliasList
              PFBlocker Block all Romania
              Allow port 80 to host x.x.x.x from anywhere
              Allow port 443 to host x.x.x.x from anywhere

            I think your only option is to create the 2nd rule "PFBlocker Block all Romania" as an "Alias Deny" rule. This way all the rules are aliases, and you can configure/customize them as you choose.

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

              I have posted Pull Request #818 to fix the following issues:

              1.  Improved IPv6 Regex
                2.  Suppress '0.0.0.0/32' from being added to any Alias/Lists.
                3.  General Tab - Moved the "Keep" Checkbox to be just below the
                      "Enable pfBNG" checkbox.

              This will bump pfBNG to version 1.04

              "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
                SixXxShooTeR
                last edited by

                Disabled a couple I-Block lists after reading what you wrote BB. I was getting too many outbound blocks with a couple of them that I didn't want. Any I-Block lists worth using?

                It is a shame that ET's prices are so high.

                I also started using some of the lists that you referenced on page 16 on this forum. Thanks for the fast responses btw! Your help is appreciated.

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

                  Has anyone done a "How to setup example"  like there are with the old PFB

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

                    Code red theme footer error. (Only in alerts tab)

                    1 Reply Last reply Reply Quote 0
                    • H
                      hedberg
                      last edited by

                      @BBcan177:

                      @mzarrugh:

                      Is it possible to use easy list

                      Not currently. That is a Domain Blocklist. pfBlockerNG is an IP Based Blocking solution. pfBNG v2.0 will have this functionality.

                      Sounds interesting with a domain blocklist. Could the functionality also be reversed, så it would be possible to create a domain whitelist in pfBNG 2.0?

                      Br,
                      Thomas

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

                        @turker:

                        Code red theme footer error. (Only in alerts tab)

                        Thanks turker… I will take a look at that when I get a chance...

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

                          @hedberg:

                          Sounds interesting with a domain blocklist. Could the functionality also be reversed, så it would be possible to create a domain whitelist in pfBNG 2.0?

                          You could whitelist Domains that you didn't want to block (Suppression).. But a reverse, not sure how that would work with Unbound.

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

                            @Tropheus:

                            Has anyone done a "How to setup example"  like there are with the old PFB

                            I will try to write one up… What kind of things would you guys want to see in a Tutorial? The basics? or just for the new features?

                            "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
                            • W
                              wcrowder
                              last edited by

                              I think the how-to should be left up to the community. One of, or several of us could collaborate on that part.  DNSBL needs attention, ie. pfBlockedrNG 2.0, I miss the daily updates.  ::)

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

                                I'm noticing extremely high CPU usage on my pfSense box when I'm just sitting on my pfBlockerNG alerts page.  Its attributed to one or more processes named "php-fpm: pool lighty (php-fpm)"

                                It seems like the longer I'm on the that page, the more of those processes I see, and the higher the CPU usage gets.

                                For what its worth, I'm seeing a significant number of alerts from attempts to access lots of different IPs at: 61.145.124.x and 183.61.112.x on port 80.  These are originating from a Nexus 9 tablet.  I can't figure out how they belong to, other than some Chinese telecon and some appear to be alibaba.  Any ideas?  I'm trying to decide if I should be concerned…

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

                                  Hi reggie.

                                  I haven't noticed any significant Load from the Alerts Tab myself? Do you leave it running with Auto-Refresh and Auto-Resolve running? Which Browser are you using?

                                  Are those Alerts coming from a Country Block? You can click any of the "!" to pull more detail about those IPs. There are several different sites listed in that Lookup page.

                                  "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
                                  • R
                                    reggie14
                                    last edited by

                                    BBcan177 -

                                    I'm using Chrome, without auto-refresh or auto-resolve running.  As far as I can tell, the high CPU usage continues indefinitely after the initial  load for the Alerts page, and there's no sign that Chrome is attempting to update that page.

                                    The problem is significantly exacerbated if I increase the number of alerts that are configured to appear.  Try bumping up the number to the last 300 deny alerts and see what happens. My pfsense box came to a crawl until I closed the browser window that had the alerts page open.

                                    As for the IP addresses, I tried looking at the resources pfblocker identifies, but couldn't find anything particularly useful there.  I did, however,  just track down the source of the traffic on my end- it's where the Go Weather app on Android goes to pull down weather data.

                                    Update 1: BTW, separate note, does the "Enable Suppression" option work yet?  I want to allow the traffic I'm seeing.  I think I could just add it to the firewall suppression list via an easy rule, but pfblockerng seems to be able to manage its own suppression list.  The main config page says I should see "+" icons in the alerts tab, but I still don't see them after enabling that option.

                                    Update 2: Re-reading the config page, it sounds like I can't suppress country blocks.  Hmmm…  I guess I should just manually create firewall rules to pass this traffic before pfblockerng blocks it.  Or is pfblockerng just going to put itself ahead of that rule?

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

                                      If you select F12 - Dev Mode. and goto "Console" tab, do you see any errors? I bumped mine to 300 and do see four php-fpm processes, but they are all between 0.5-2% each (max 3% at times).

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

                                        @reggie14:

                                        The main config page says I should see "+" icons in the alerts tab, but I still don't see them after enabling that option.

                                        In the General tab, enable the checkbox for "Suppression". The "+" icon will not appear for Country Blocks. (Hover over the Lists column and the "+" icon when you see it for more details)

                                        To overcome Country Blocks, you need to create a Whitelist Alias and set it to Permit Outbound.

                                        "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
                                        • R
                                          reggie14
                                          last edited by

                                          @BBcan177:

                                          If you select F12 - Dev Mode. and goto "Console" tab, do you see any errors? I bumped mine to 300 and do see four php-fpm processes, but they are all between 0.5-2% each (max 3% at times).

                                          Sorry, I'm not sure what you mean.  Do you mean I need to SSH into the pfsense box to enable dev mode, and then I'll see a console tab on the webGUI?

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

                                            @reggie14:

                                            @BBcan177:

                                            If you select F12 - Dev Mode. and goto "Console" tab, do you see any errors? I bumped mine to 300 and do see four php-fpm processes, but they are all between 0.5-2% each (max 3% at times).

                                            Sorry, I'm not sure what you mean.  Do you mean I need to SSH into the pfsense box to enable dev mode, and then I'll see a console tab on the webGUI?

                                            The Chrome Browser (All browsers actually) have a Dev mode to help in Debugging. Click F12, when in Chrome and it will show more details that can help diagnose the issue.

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