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

    Rules Show Strange Byte Count

    Scheduled Pinned Locked Moved General pfSense Questions
    22 Posts 6 Posters 1.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.
    • MaxK 0M
      MaxK 0
      last edited by

      Just noticed after upgrading to 23.05 that the byte count is odd for this firewall rule. Any suggestions on how to resolve?

      05247658-5bcf-4eb6-afef-0c72bbd73b5e-image.png

      cmcdonaldC 1 Reply Last reply Reply Quote 0
      • cmcdonaldC
        cmcdonald Netgate Developer @MaxK 0
        last edited by

        @MaxK-0 If you reload the filter (to reset the counters) do the numbers become sensible?

        Need help fast? https://www.netgate.com/support

        MaxK 0M 1 Reply Last reply Reply Quote 0
        • MaxK 0M
          MaxK 0 @cmcdonald
          last edited by

          @cmcdonald Reloading solved it temporarily but then it reverted back.

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @MaxK 0
            last edited by

            @MaxK-0 how long did it take to go - like that? Did it count up really fast to a very large number?

            What if you change the rule to just be your source net, which I assume is this barsoumsec net? Why would you have any there as the source - is this a transit network for downstream networks that would not be this barsoumsec net?

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            MaxK 0M 1 Reply Last reply Reply Quote 0
            • MaxK 0M
              MaxK 0 @johnpoz
              last edited by

              @johnpoz It took maybe a few hours for it to revert. It seems to make it into the GiB range then goes to the strange number.

              Source net does not matter (happened with any and barsoumsec):

              e0002639-2925-4c7b-a024-68de410b7a5a-image.png

              cmcdonaldC 1 Reply Last reply Reply Quote 0
              • cmcdonaldC
                cmcdonald Netgate Developer @MaxK 0
                last edited by

                @MaxK-0

                What platform/hardware are you on?

                If you execute the following in the Execute PHP Commands section under Diagnostics > Command Prompt:

                print_r(pfSense_get_pf_rules());
                

                After finding the problematic rules, what do they show for bytes ? This will tell me where in the stack the issue is

                Need help fast? https://www.netgate.com/support

                MaxK 0M 1 Reply Last reply Reply Quote 0
                • MaxK 0M
                  MaxK 0 @cmcdonald
                  last edited by

                  @cmcdonald SG-3100. I rebooted and that did not help. Count gets strange after crossing 2 GiB.

                  a2f62abf-a76c-4822-a58f-3e32dedfa81b-image.png

                  Output from print_r:

                  6c9d961d-4913-4954-b7f9-9ebbb43d2d36-image.png

                  81bdada5-835a-4a01-9601-4deca6c9bd66-image.png

                  cmcdonaldC johnpozJ 2 Replies Last reply Reply Quote 0
                  • cmcdonaldC
                    cmcdonald Netgate Developer @MaxK 0
                    last edited by cmcdonald

                    @MaxK-0 Yea, it's an overflow caused by PHP limitations on 32bit platforms. It's cosmetic, but is something we should fix. Internally pf(4) stores counters as uint64. However, PHP on 32bit can only represent integers up to 2,147,483,647.

                    Need help fast? https://www.netgate.com/support

                    1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator @MaxK 0
                      last edited by

                      @MaxK-0 said in Rules Show Strange Byte Count:

                      SG-3100

                      Well they just extended the $60 off upgrade for a 4100 ;)

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                      MaxK 0M 1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Opened a bug for this: https://redmine.pfsense.org/issues/14440

                        MaxK 0M 1 Reply Last reply Reply Quote 0
                        • MaxK 0M
                          MaxK 0 @johnpoz
                          last edited by

                          @johnpoz I was thinking about that but couldn't tell my wife, with a straight face, that I needed to upgrade because of an 32 bit integer overflow display problem (she worked in IT too). On a side note, I was able to supercharge my car by telling her I needed an "active induction system" - she heard "astro projection system." :-)

                          S GertjanG 2 Replies Last reply Reply Quote 0
                          • MaxK 0M
                            MaxK 0 @stephenw10
                            last edited by

                            @stephenw10 Thank you very much.

                            1 Reply Last reply Reply Quote 0
                            • S
                              SteveITS Galactic Empire @MaxK 0
                              last edited by

                              @MaxK-0 said in Rules Show Strange Byte Count:

                              I needed to upgrade because of an 32 bit integer overflow display problem (she worked in IT too)

                              Seems like a perfectly good reason IT to upgrade!
                              https://en.wikipedia.org/wiki/Year_2038_problem
                              (if we get our clients through Y2K and Y2K38 we should be good for a while...right? right? hello?)

                              Interesting this bug didn't seem to be an issue on 23.01...? a4de1144-9f08-4399-b253-a8d4ef540e1b-image.png

                              Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                              When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                              Upvote 👍 helpful posts!

                              stephenw10S 1 Reply Last reply Reply Quote 0
                              • GertjanG
                                Gertjan @MaxK 0
                                last edited by Gertjan

                                @MaxK-0

                                I would pay a small fortune for that one : coming home, put on the friendly and puzzled face, and ask : honey, can you take care of the overflow issue ?

                                edit :
                                4100 using 23.05 :

                                702aa1e1-98b1-4fa5-8b57-624e426cec5a-image.png

                                IPv6 takes the lead !

                                No "help me" PM's please. Use the forum, the community will thank you.
                                Edit : and where are the logs ??

                                johnpozJ 1 Reply Last reply Reply Quote 1
                                • johnpozJ
                                  johnpoz LAYER 8 Global Moderator @Gertjan
                                  last edited by

                                  @Gertjan said in Rules Show Strange Byte Count:

                                  IPv6 takes the lead !

                                  hahah..

                                  Not here, on a "old" 4860 on 23.05

                                  nothere.jpg

                                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                                  If you get confused: Listen to the Music Play
                                  Please don't Chat/PM me for help, unless mod related
                                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                  1 Reply Last reply Reply Quote 0
                                  • stephenw10S
                                    stephenw10 Netgate Administrator @SteveITS
                                    last edited by

                                    @SteveITS said in Rules Show Strange Byte Count:

                                    Interesting this bug didn't seem to be an issue on 23.01...?

                                    On a 3100?

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      SteveITS Galactic Empire @stephenw10
                                      last edited by

                                      @stephenw10 said in Rules Show Strange Byte Count:

                                      @SteveITS said in Rules Show Strange Byte Count:

                                      Interesting this bug didn't seem to be an issue on 23.01...?

                                      On a 3100?

                                      Yes, I didn't specify that, did I. You made me check again though since we have a few routers in our office...make sure I connected to the right one yesterday. :) (tip: colored login page backgrounds)

                                      Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                                      When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                                      Upvote 👍 helpful posts!

                                      1 Reply Last reply Reply Quote 0
                                      • stephenw10S
                                        stephenw10 Netgate Administrator
                                        last edited by

                                        Ha, yup, I've run out of colours at this point!

                                        S 1 Reply Last reply Reply Quote 0
                                        • S
                                          SteveITS Galactic Empire @stephenw10
                                          last edited by

                                          @stephenw10 said in Rules Show Strange Byte Count:

                                          Ha, yup, I've run out of colours at this point!

                                          In your next team meeting point out most video drivers now can show 16 million. #a3bd44 and #a3bd43 are different after all. ;)

                                          Perhaps a checkbox to show the router hostname on the login screen?

                                          But I digress…

                                          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                                          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                                          Upvote 👍 helpful posts!

                                          S 1 Reply Last reply Reply Quote 0
                                          • stephenw10S
                                            stephenw10 Netgate Administrator
                                            last edited by

                                            There are several options being discussed..

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