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

    Firewall rules require a reboot to apply

    Scheduled Pinned Locked Moved Official Netgate® Hardware
    13 Posts 3 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Ok so the destination there is a routed public subnet on an internal interface?

      If you mouse over the red X in the log what firewall rule does it show is blocking that?

      Steve

      A 1 Reply Last reply Reply Quote 0
      • A
        aasimenator @stephenw10
        last edited by

        @stephenw10 Hi All it says is block/random numbers
        88de20bf-744d-4b7c-801e-adf6a6884ac7-image.png

        A 1 Reply Last reply Reply Quote 0
        • A
          akuma1x @aasimenator
          last edited by

          @aasimenator said in SG-2440 doesn't apply firewall rules until rebooting the entire device:

          @stephenw10 Hi All it says is block/random numbers

          Those "random numbers" should be the tracking ID code for the firewall rule that's being used. Take a note of it, then go find the rule, is what I think @stephenw10 is getting at...

          Here's what one of my firewall rules looks like, with the tracking code. It's all the way down at the bottom of the rule window.

          screenshot675645.png

          Jeff

          1 Reply Last reply Reply Quote 0
          • A
            aasimenator
            last edited by

            Is there a quick way to find this? as i have over 30 rules in the firewall and it would be a waste of time to go through each of them to just find the tracking id.

            A 1 Reply Last reply Reply Quote 0
            • A
              akuma1x @aasimenator
              last edited by akuma1x

              @aasimenator I don't think there's a search mechanism for finding the data you're looking for. It's been a redmine "to do" item for a little while already.

              https://redmine.pfsense.org/issues/8703

              Anyway, I might be wrong, since I don't know how read the data in that post very well. So, take that with a grain of salt...

              On my pfsene box, I've got logging turned on for a handful of rules, and I can see what rules trigger, and then those are listed in the logs. You can find that at Status -> System Logs -> Firewall -> Normal View

              (https://www.dropbox.com/s/f9xswur5fabw7gh/screenshot238976.png?dl=0)

              This might be what the "bug fix" in the redmine topic actually fixed, but I'm not sure.

              Hope that helps!

              Jeff

              1 Reply Last reply Reply Quote 0
              • A
                aasimenator
                last edited by

                I've checked most of the rules i have and all of them start with "15xxxxx" and none of them are with tracking id "177xxxxx"

                A 1 Reply Last reply Reply Quote 0
                • A
                  akuma1x @aasimenator
                  last edited by akuma1x

                  @aasimenator Are you sure that's not one of your "default deny" rules, or maybe like a "block all ipv6" traffic, or the "block bogons" rules?

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

                    Yeah, importantly, it doesn't look like one of the default deny rules which means it's blocked by something that's been added.

                    Go to Diag > Command Prompt and execute: pfctl -sr -vvvv

                    That will show you all your rules with the tracking IDs.

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • A
                      aasimenator
                      last edited by aasimenator

                      Ok So its one of the Floating rules weird that rather than showing the description / name in the logs its showing Tracking ID which is much difficult to "track" I remember it used to show which rule is blocking the traffic before not sure why they switch to this non-intuitive way of displaying the logs, makes it difficult to troubleshoot the problem.

                      085d6fdb-b826-4492-bf2b-a29c69920d7c-image.png

                      Anyways now that I found this, how can I allow or bypass the IP because I want my Rules to take priority not pfB's and I thought setting that in here made it so my allow rules are always first and rest will follow later.
                      6d002f23-43ef-4939-87ce-4c8657ca6eb9-image.png

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

                        It's still a floating rule which is applied before all other rules. So even if it set to be added after pfSense floating rules it will still block before the rules on the WAN interface pass it.

                        You can set the pfBlocker rules not to be on the floating tab. Or you could add your manual rule on the floating tab above them.

                        Anyway, it's blocked by pfBlocker. Mystery solved at least.

                        Steve

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