Navigation

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

    problem with tracking id log. It never changes

    General pfSense Questions
    6
    21
    357
    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 last edited by

      Hi everyone.
      I have a problem related to log management in a pfsense version 2.6
      when I enter the system log I can't verify the id log and they are always with the same id.

      69d833ec-24ad-45f6-82cd-7aecb8bd41fa-immagine.png

      Where can I check to return to having a correct view of the logs and find all the various ids?
      Currently I have removed all the logs I had set up and left only one rule log.

      8a9a4da7-5846-4ea9-8a81-d7ce5da74db7-immagine.png

      98ee71d1-4d3f-408c-a33e-686e4840b4ad-immagine.png

      I hope I was clear and I await your feedback for the checks to be made in the pfsense.

      Thank you

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

        @charneval
        Never seen this ID.
        But run

        pfctl -sr
        

        and search for it to get an idea, which rule it is.

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

          Hi.
          I saw that in the firewall rules there are the correct id but isn't present the id : 4294967295

          https://pastebin.com/cbHHH5SW

          and this is the log :

          https://pastebin.com/TuyLPpnG

          Where can I chek the problem ?

          Thanks
          Andrea.

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

            That rule may no longer exist in the ruleset. Are you still seeing blocks logged against it currently?

            C 1 Reply Last reply Reply Quote 0
            • 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.

              johnpoz 1 Reply Last reply Reply Quote 0
              • johnpoz
                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 23.01 | Lab VMs CE 2.6, 2.7

                1 Reply Last reply Reply Quote 0
                • stephenw10
                  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
                  • johnpoz
                    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 23.01 | Lab VMs CE 2.6, 2.7

                    1 Reply Last reply Reply Quote 0
                    • stephenw10
                      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.

                        Gertjan 1 Reply Last reply Reply Quote 0
                        • Gertjan
                          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.

                          johnpoz 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
                            • johnpoz
                              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 23.01 | Lab VMs CE 2.6, 2.7

                              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

                                  bmeeks 1 Reply Last reply Reply Quote 0
                                  • bmeeks
                                    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
                                          • stephenw10
                                            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