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

    pfBlockerNG Count and Packets Query - Seems like little being captured

    Scheduled Pinned Locked Moved pfSense Packages
    24 Posts 3 Posters 1.9k 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.
    • J
      jrey @LPD7
      last edited by

      @LPD7 said in pfBlockerNG Count and Packets Query - Seems like little being captured:

      Would setting unbound python mode break anything I may have setup

      You would actually have to try it. Hard for anyone to say without knowing what you have setup.

      It works well here.

      Don't forget out of the box - nothing is getting in (unless you allow it)
      choose wisely what users can get out to.

      some ad block lists have already be mentioned
      @Uglybrian said

      In my opinion, it seams you only need the DNSBL_ADs_Basic list.
      I have found that my internet usage is best served by two small feeds of Adaway and Dan Pollock/SWC
      You may want to try a regex list https://github.com/mmotti/pihole-regex/blob/master/regex.list

      start with the one DNSBL - you can always add if something "pops up" - don't get carried away with frequency of updates - daily list updates is usually more than adequate - some lists (like emerging threats etc) you may want to be more frequent - (just understand the list and what needs to be set) take it from there.

      Find a balance the works for your use case.

      Regex is a good way. Even though I use unbound python mode, I've never found a need for a regex list.. and to follow up @Uglybrian

      Unbound Mode:
          This mode will utilize Unbound local-zone/local-data entries for DNSBL (requires more memory).
      Unbound Python Mode:
          This mode is only available for pfSense version 2.4.5 and above.
          This mode will utilize the python integration of Unbound for DNSBL.
          This mode will allow logging of DNS Replies, and more advanced DNSBL Blocking features.
          This mode requires substantially less memory

      Nothing ventured nothing gained.

      1 Reply Last reply Reply Quote 0
      • LPD7L
        LPD7
        last edited by

        @Uglybrian @jrey Appreciate the feedback. I have enabled Unbound Python Mode and followed these instructions https://www.vikash.nl/setup-pfblockerng-python-mode-with-pfsense/ as a guide. I did a search for "pfblockerng unbound python mode setup" and only found forums and not app documentation which is why I used the above as a baseline. It is a based on an earlier version of PFB but 99% of it seemed applicable.

        Immediately I noticed no difference in the operation of the box, the dashboard was all green, and connections were not impacted. What I did notice is that my memory went up 1% from 15 to 16%. I thought this strange since the main draw to this mode was its lower resource utilization.

        I have several feeds enabled, the same as prior to the change. The following are those feeds.
        6d0e8553-6554-4fe3-b670-c1f556a105ca-image.png
        3a783374-2fa0-488e-8f92-ece0ce84186d-image.png
        4deae554-5c9d-4088-8215-40a36db64df7-image.png
        818ed3ae-f5dc-4dc0-baee-f76e9644f78b-image.png
        ec3572d3-e0fb-400e-a1e1-ed886f0b8af0-image.png
        0712c8d9-aa24-4f40-9c85-4c88670de1b3-image.png
        14129aad-848c-4623-8789-cb6629837c40-image.png

        I am not sure why Spamhaus is disabled, I will have to look into it.

        I havent setup regex yet, just waiting to see how it runs and what if any suggestions you might have.

        Thx

        Intelligence is not a substitute for common sense.
        Intel i5-3427 * 1.80GHz * 8GB Memory * 100GB HDD
        Putting legacy equipment into service and out of landfills.

        J 1 Reply Last reply Reply Quote 0
        • J
          jrey @LPD7
          last edited by

          @LPD7

          I am not sure why Spamhaus is disabled,

          Because the list format changed and the list is likely not downloading for you. Should be fixed in pf _17 (but _18 should be just around the corner too, so don't worry about it for a few days)

          LPD7L 1 Reply Last reply Reply Quote 0
          • LPD7L
            LPD7 @jrey
            last edited by

            @jrey I have _17 installed so will see what _18 brings, its not an issue right now and actually didnt notice until I looked so that says something.

            I did notice after I got rid of the v6 and other feeds mentioned earlier that packet counts for PFB went through the roof. I am thinking I may get rid of the others with a low count and no packets recorded as well.

            aa7716be-4b70-4524-b924-0dca989d3ce9-image.png

            Memory usage went down by 2% (14%) is this the low resource utilization that is mentioned? Want to see what is expected vs what is too much.

            I am going to save my config and setup regex and see what happens.

            Intelligence is not a substitute for common sense.
            Intel i5-3427 * 1.80GHz * 8GB Memory * 100GB HDD
            Putting legacy equipment into service and out of landfills.

            J 1 Reply Last reply Reply Quote 0
            • J
              jrey @LPD7
              last edited by

              @LPD7 said in pfBlockerNG Count and Packets Query - Seems like little being captured:

              packet counts for PFB went through the roof.

              Did you reset them ?

              LPD7L 1 Reply Last reply Reply Quote 0
              • LPD7L
                LPD7 @jrey
                last edited by

                @jrey Yes I either do a reload or cron after changing settings. Is this what you were referring to?

                Regex only has a 14 "count" is that right? I am still trying to get used to this, from what I understand the count is the number of targeted ip's and domains and the count is the number of packets that fell into that target range. Based on this understanding I feel like those with low count are probably not worth the resources or reduced performance incurred.

                30de2618-ac7a-4193-9909-6f4c6153f8ae-image.png

                Intelligence is not a substitute for common sense.
                Intel i5-3427 * 1.80GHz * 8GB Memory * 100GB HDD
                Putting legacy equipment into service and out of landfills.

                J 1 Reply Last reply Reply Quote 0
                • J
                  jrey @LPD7
                  last edited by

                  @LPD7

                  14 is correct for regex. - it uses the patterns in the list -- not specific names.

                  sorry, you had said the packet counts went through the roof -- so the question have you reset them (the counters) relates to that .

                  if you click the wrench icon at the top right of the pfBlockerNG dashboard widget the "settings" will display at the end of the list. Personally I use weekly and the counters get set to 0 then.
                  (Never IMHO is a poor choice, because although it can make some impressive (large) numbers, it is harder to visually pick up a trend of what works vs what doesn't.
                  The options there are Never, Daily and Weekly.

                  Screen Shot 2024-09-29 at 3.02.20 PM.png

                  I don't know your use case, but with the traffic here, and who is using, and after just observation over time, I can tell you what the approximate numbers should be for any day of the week. the Never option obscures that at least for me.

                  LPD7L 1 Reply Last reply Reply Quote 0
                  • LPD7L
                    LPD7 @jrey
                    last edited by

                    @jrey Great suggestion, I just set them to weekly. I am going to keep an eye on it for a week and see how it goes and see where I go from there. Thanks for your help.

                    My wife has me on a crusade. I am trying to see if there is a way to force devices that have cell data but get an IP from PFS DHCP to go through the FW and not the cellular so we can control access. The kids dont always adhere to the rules and I am looking to block their IPs from accessing the internet but still be locally connected/controlled and not able to bypass this by using cellular data. In my mind what I see is once they get an IP from PFS DHCP that setting is primary and overrides any cellular settings. Not sure if that or something similar is possible, I vaguely recall something like this but not certain.

                    Intelligence is not a substitute for common sense.
                    Intel i5-3427 * 1.80GHz * 8GB Memory * 100GB HDD
                    Putting legacy equipment into service and out of landfills.

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      jrey @LPD7
                      last edited by

                      @LPD7 said in pfBlockerNG Count and Packets Query - Seems like little being captured:

                      trying to see if there is a way to force devices that have cell data but get an IP from PFS DHCP to go through the FW and not the cellular so we can control access.

                      short answer is "yes" there is a way.

                      When the device is connected locally (wifi) easy part.
                      When the device is connected by Cell, VPN (settings so the traffic goes through the VPN/Firewall)

                      All our mobile devices switch seamlessly between wifi and VPN (when on Cell) all DNS and access is controlled through the NetGate.

                      You likely want to ask those questions when they come up, in new posts in the appropriate forum areas.
                      .

                      LPD7L 2 Replies Last reply Reply Quote 0
                      • LPD7L
                        LPD7 @jrey
                        last edited by

                        @jrey Its good to know there is a way. I will tackle that after I take a breather. Have a good your week.

                        Intelligence is not a substitute for common sense.
                        Intel i5-3427 * 1.80GHz * 8GB Memory * 100GB HDD
                        Putting legacy equipment into service and out of landfills.

                        1 Reply Last reply Reply Quote 0
                        • LPD7L
                          LPD7 @jrey
                          last edited by

                          @jrey I just noticed cpu usage is up to 20+% which is about double from a day before. When I go into system activity I see the cpu as idle which is confusing as I would think an idle state would see lower cpu%. Am I not looking at this correctly?

                          36fd01f3-e0fe-40a5-abb3-ec785302010a-image.png

                          2f4cff50-56d6-4779-a3ad-49e0aee26ae4-image.png

                          Intelligence is not a substitute for common sense.
                          Intel i5-3427 * 1.80GHz * 8GB Memory * 100GB HDD
                          Putting legacy equipment into service and out of landfills.

                          1 Reply Last reply Reply Quote 0
                          • U
                            Uglybrian
                            last edited by Uglybrian

                            That is read as percentage at idle. your first core is at idle 96.68 % And only working .32%

                            LPD7L 1 Reply Last reply Reply Quote 0
                            • LPD7L
                              LPD7 @Uglybrian
                              last edited by

                              @Uglybrian Appreciate that feedback. Why would cpu usage be at 23% if at idle thats where I am getting confused. Cpu usage has for the most part been half this number or lower and system activity is not showing it working on anything to justify the 23%. I may be looking at this wrong but to my mind cpu usage would be a representation of how much the cpu is being put to work on a task/function. I am assuming idle is the correct state given the command column contents and everything else in the system activity is or was at 0.00%.

                              Intelligence is not a substitute for common sense.
                              Intel i5-3427 * 1.80GHz * 8GB Memory * 100GB HDD
                              Putting legacy equipment into service and out of landfills.

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