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

    problem with tracking id log. It never changes

    Scheduled Pinned Locked Moved General pfSense Questions
    21 Posts 6 Posters 1.7k 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.
    • C
      charneval @stephenw10
      last edited by

      @stephenw10
      Sorry I didn't understand your answer.
      Can I give you more information about firewall configuration?
      The problem has been present for about 1 month but before that if I entered the firewall log screen I had the logs of all the rules.

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

        @charneval The question is are you seeing current log entries - like today, or 10 minutes ago showing that rule ID? Those are all dated the 17th.. Do you have entries from say 3/21 now with that same ruleID.

        If you do - then it has to be in the firewall rules with that ID on them.. But if your not seeing any current log entries, then its possible those were some old rule, and its ID.

        To be honest from what is blocked, that could just be default deny rule.

        Use to look at your rules
        pfctl -sa

        You should be able to grep for the rules via that ID.. So for example here are two hits in my log just recent from different rules

        hits.jpg

        If I grep the rules for that ID, I can see what rules blocked that.

        [23.01-RELEASE][admin@sg4860.local.lan]/root: pfctl -sa | grep 1675276073
        block drop in log quick on igb1 reply-to (igb1 209.snipped) inet from <pfB_DigitalOcean_v4> to 209.snipped label "USER_RULE: DO Blocks" label "id:1675276073" ridentifier 1675276073
        USER_RULE: DO Blocks id:1675276073 54511 1193 51380 1193 51380 0 0 0
        
        [23.01-RELEASE][admin@sg4860.local.lan]/root: pfctl -sa | grep 1512833215
        block drop in log quick on igb1 reply-to (igb1 209.snipped) inet proto tcp from any to 209.snipped flags S/S label "USER_RULE: Clean Block" label "id:1512833215" ridentifier 1512833215
        USER_RULE: Clean Block id:1512833215 36728 12651 523500 12651 523500 0 0 0
        [23.01-RELEASE][admin@sg4860.local.lan]/root:  pfctl -sa
        

        But if the log is old, then its possible the rule ID is no longer a active rule, and you will not find it in your rule set.

        But if your seeing current blocks with that ID, then it has to exist in your rule set.

        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.8, 24.11

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

          Except the default deny rule has a fixed ID and that isn't it. So more likely a custom block rule or maybe something from pfBlocker.

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

            @stephenw10 true.. But if the rule is active then it would have to be in the rule list.. I don't see logging with an ID that isn't actually there, etc.

            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.8, 24.11

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

              Exactly. One issue can be log showing against the wrong rule description because the rule IDs are parsed when the logs are displayed not when the connection happened. Though that isn't case here.

              That ID number looks out of place though, I wonder if it was changed somehow.

              C 1 Reply Last reply Reply Quote 0
              • C
                charneval @stephenw10
                last edited by

                @stephenw10

                Good morning.
                If it were a custom blocking rule, I would have to identify it in the command: pfctl -sa | grep 4294967295
                I can't find any rules with this id and I can't get the log view back with the right ids.
                The service pfblocker is disabled.
                I can test in other firewall this configuration and try to update at devel release 2.7.X ?

                What's your advice?

                Thanks. Andrea.

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

                  @charneval

                  Something in my head tells me there was an issue with "firewall & track IDs".
                  It was way back, was it 2.6.0 ?
                  Nothing in the System Patches (pfSense package) ?

                  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 0
                  • C
                    charneval
                    last edited by

                    My version is :
                    2.6.0-RELEASE (amd64)
                    built on Mon Jan 31 19:57:53 UTC 2022
                    FreeBSD 12.3-STABLE

                    But I've had this problem for about 1 month and the firmware version has been around for about 5 months.

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

                      @gertjan said in problem with tracking id log. It never changes:

                      there was an issue with "firewall & track IDs".

                      Wasn't there an issue with copy of firewall rules not creating new IDs - I don't recall an issue with non-existing IDs being logged..

                      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.8, 24.11

                      V 1 Reply Last reply Reply Quote 0
                      • V
                        viragomann @johnpoz
                        last edited by

                        @johnpoz
                        Anyway never seen such a high rule ID number. So if it was not generated by a certain package, I suspect, there must be something went pretty wrong at the rule generation.

                        To resolve, I would try to export the config, search for this rule ID in it. If it isn't there, reinstall pfSense and import the config again and hope, that the issue doesn't come back.

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

                          I exported the configuration and inside I can't find any id with number: 4294967295, now I'll try to restore the configuration on a different hardware and see if I'm carrying the log problem.

                          Thanks

                          bmeeksB 1 Reply Last reply Reply Quote 0
                          • bmeeksB
                            bmeeks @charneval
                            last edited by bmeeks

                            @charneval said in problem with tracking id log. It never changes:

                            I can't find any id with number: 4294967295

                            That particular number is special. It is the decimal representation of the largest unsigned integer that will fit within a 32-bit word (when expressed in binary). See here: https://en.wikipedia.org/wiki/4,294,967,295. So, my guess is an integer variable is corrupted or overflowed. I don't have a guess as to why, though.

                            1 Reply Last reply Reply Quote 3
                            • C
                              charneval
                              last edited by

                              Hi.
                              For a test I force a reinstall of all packages using pkg upgrade -fy
                              but after the reboot I can't open the web consolle.
                              In ssh the firewall responds and works properly.

                              How can I restore access via web page?

                              V 1 Reply Last reply Reply Quote 0
                              • V
                                viragomann @charneval
                                last edited by

                                @charneval
                                Troubleshooting Access when Locked Out of the Firewall

                                Disable the filter, then login in and check the rules.

                                C 1 Reply Last reply Reply Quote 0
                                • C
                                  charneval @viragomann
                                  last edited by charneval

                                  @viragomann
                                  I'm connecting remotely to the firewall via ssh and I don't want this operation to give me later problems so I prefer to do it on site.
                                  The firewall has many rules and many client at the moment connected.
                                  Currently I don't know if reconfiguring the packages solved my logging problem but I will try to check as soon as possible.

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

                                    That. And also try restating php then the webgui from the menu.

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

                                      I solved the problem by reinstalling the firewall with version 2.6.0 and reloading an old backup.
                                      But I realized that the package reinstall solution ( pkg upgrade -fy ) solved the log problem but blocked me from accessing the web page.
                                      Thanks.

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