Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    After failover, secondary firewall started to deny connection for which a rule exists

    Scheduled Pinned Locked Moved Firewalling
    10 Posts 3 Posters 3.6k Views 3 Watching
    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.
    • N Offline
      nmohata
      last edited by

      Hello,

      We did a failover from Primary firewall to the secondary firewall and after firewall, for one specific connection, the traffic was going to deny rule though an allow rule exists above that and on Primary firewall it is working fine but not on secondary. We had to add a specific rule to allow the dropped connection and then it was allowed.

      We are using Netgate 8300, version 24.03

      Is it a bug on this OS?

      Thank you

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

        What was the rule in question? What was the traffic getting denied?

        There wasn't any bug I was aware of in 24.03 but that is a very old version at this point. You should upgrade those anyway.

        It sounds more like a rule that applied to the Primary only for some reason. Like something not using the CARP VIP for example.

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          nmohata @stephenw10
          last edited by

          @stephenw10 The rule in question allows traffic to a specific hosts (an object group created for those hosts) from any source on smtp port.
          The rule in question is being used but the not from one specific source though we can see the traffic going from this same rule from the source in same subnet to that specific destination on smtp port.
          Example:
          the rule says : any to 10.10.10.10/11/12/13 on smtp port
          the traffic is allowed from 172.20.10.4 to 10.10.10.10 on smtp port via this rule
          but traffic for 172.20.10.5 to 10.10.10.10 on smtp port is going to deny rule
          When we added the specific rule for 172.20.10.5 to 10.10.10.10 on smtp, it worked.

          This connection was working before failover via the any to 10.10.10.10/11/12/13 on smtp port rule.

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

            What block rule is the traffic hitting? The default deny rule?

            There is no NAT happening here? It's all local subnets?

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

              Yeah seeing the full rule list and order would be helpful, floating rules? etc.

              What would make sense is you had a rule above your smtp allow any source that blocked this specific client, and then you added a rule above the block rule you where hitting.

              Without seeing your rule list, it's all guess work - my guess pebkac.

              Maybe an out of state condition maybe, what was the specific block you were seeing? Also why would you still be running such an old version? Maybe during the failover a state did not get synced because of the failure? Maybe the other clients just started a new session with a new state, and this guy failed to do that?

              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 26.03.1 | Lab VMs 2.8.1, 26.03.1

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

                Yeah hard to see why that would be different on the Primary but it is possible to set rules not to sync between nodes.

                N 1 Reply Last reply Reply Quote 0
                • N Offline
                  nmohata @stephenw10
                  last edited by nmohata

                  @johnpoz @stephenw10 we have multiple other rules on this firewall and all other connections are worked fine except this one connection and the deny rule was and is below both the rules. There is no nat, just local subnets.

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

                    Does the alias exist on both nodes?

                    N 1 Reply Last reply Reply Quote 0
                    • N Offline
                      nmohata @stephenw10
                      last edited by nmohata

                      @stephenw10 Yes, it does. The configuration between both the nodes is in sync.
                      The strange part is that the connection still works via this rule "any to 10.10.10.10/11/12/13 on smtp port to host 10.10.10.11" but not to 10.10.10.10 from the same source 172.20.10.5

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

                        Is it actually populated? Check the rule actully exists on the secondary as expected by running: pfctl -vsr

                        That will create a lot of output but you should see the same set of expanded rules on both nodes. I suspect something will be missing on the secondary since it isn't matching.

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