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

    Packet Counts Not Updating in pfBlockerNG Widget

    Scheduled Pinned Locked Moved pfBlockerNG
    36 Posts 8 Posters 3.8k 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
      mlines @BBcan177
      last edited by

      @bbcan177 So if I set the description to "pfb_....", the rule is not deleted however it does not increment the count. If I set the description to "pfB_", the count is incremented during the reload but then the rule is deleted at the end of the reload. Screen Shot 2020-12-06 at 12.55.45 PM.png Screen Shot 2020-12-06 at 12.56.12 PM.png

      BBcan177B 1 Reply Last reply Reply Quote 0
      • T
        tman222
        last edited by

        @mlines - if the name of the IP list for Alias Deny is pfB_PRI1_v4, make sure that the description of the firewall that uses this pfBlockerNG alias starts with "pfb_" (note the small "b"). So for instance, you could put pfb_PRI1_v4 as the only text into the firewall rule description, and the counter in the widget should start to work (again, note the the small "b"). Hope this helps.

        M 1 Reply Last reply Reply Quote 0
        • M
          mlines @tman222
          last edited by

          @tman222 Thanks - I can do that and the rule will not be deleted, however the dashboard counter no longer works.

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

            @mlines

            1. Leave the Firewall Rule Description prefix with "pfb_"

            2. Then download the patched file:
              curl -o /usr/local/www/widgets/widgets/pfblockerng.widget.php "https://gist.githubusercontent.com/BBcan177/22a3c6b6fe9b7b5f7415dfaa189c49a4/raw"

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

            M 1 Reply Last reply Reply Quote 1
            • M
              mlines @BBcan177
              last edited by

              @bbcan177 Ok, I think I have it (and to be clear for everyone else). Apply the patch as described above. Then, make the rule description the same as the Alias List name, except use a small b instead of a capital B.

              For example, when adding the PRI1 feed as Alias Deny, the resultant Alias name will be pfB_PRI1_v4. When adding a rule that uses this Alias, set the description to "pfb_PRI1_v4". Do not customize or otherwise change the description (my mistake).

              T 1 Reply Last reply Reply Quote 0
              • T
                tman222 @mlines
                last edited by tman222

                @mlines said in Packet Counts Not Updating in pfBlockerNG Widget:

                @bbcan177 Ok, I think I have it (and to be clear for everyone else). Apply the patch as described above. Then, make the rule description the same as the Alias List name, except use a small b instead of a capital B.

                For example, when adding the PRI1 feed as Alias Deny, the resultant Alias name will be pfB_PRI1_v4. When adding a rule that uses this Alias, set the description to "pfb_PRI1_v4". Do not customize or otherwise change the description (my mistake).

                Hi @mlines - as I understand it, it should work as long as the firewall description starts with "pfb_". So for instance, if you had the firewall rule description as something like "pfb_PRI1_v4 alias to deny xyz traffic" the widget counter should still work. Hope this helps.

                1 Reply Last reply Reply Quote 1
                • D
                  digdug3 @BBcan177
                  last edited by

                  @bbcan177 said in Packet Counts Not Updating in pfBlockerNG Widget:

                  @mlines

                  If you set the Firewall Rule Description to start with "pfb_", it will not be removed by the package.
                  Maybe send a screenshot of where you are putting the Description.

                  @BBcan177 Hmm, alternate descriptions used to work before. Why not just look at the Alias name like before? I don't like changing the descriptions...

                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @BBcan177
                    last edited by

                    @bbcan177 said in Packet Counts Not Updating in pfBlockerNG Widget:

                    patch

                    Hi
                    I have the same problem too.
                    I don't know how to use pfsense well so I wanted to know how to put this patch.
                    Can you show me how to do it even with screenshots? Thank you

                    ? 1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User @A Former User
                      last edited by

                      Can anyone help me? Thank you

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        digdug3 @A Former User
                        last edited by

                        @antonio-briguglio Please update pfBlockerNG to the latest dev. version, that fixes the issue.

                        ? 1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User @digdug3
                          last edited by

                          @digdug3 thank you

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