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

    Static route using a Gateway Group

    Scheduled Pinned Locked Moved Routing and Multi WAN
    5 Posts 4 Posters 2.2k Views 5 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.
    • Bob.DigB Offline
      Bob.Dig LAYER 8
      last edited by Bob.Dig

      Is there a reason that I can not set a static route using a Gateway Group? Also I can not set a second static route to the same destination via another gateway. I could do policy routing, but what to do if the firewall itself should use it too.

      1 Reply Last reply Reply Quote 0
      • M Offline
        MalagaFirewall8
        last edited by

        I think that is because the two features sit at different layers. A static route has to install a concrete next-hop in the routing table, while a gateway group is mainly a firewall-rule/policy-routing object. So for traffic generated by pfSense itself there is no rule match where the group can be selected. If the firewall needs failover for that destination, I would look at dynamic routing/FRR or an external/scripted route change tied to gateway status, not duplicate static routes to the same prefix.

        Bob.DigB 1 Reply Last reply Reply Quote 0
        • Bob.DigB Offline
          Bob.Dig LAYER 8 @MalagaFirewall8
          last edited by

          For the default gateway this already exist, so it could be done but hasn't.

          luckman212L 1 Reply Last reply Reply Quote 0
          • luckman212L Offline
            luckman212 LAYER 8 @Bob.Dig
            last edited by

            @Bob.Dig I just went down a small rabbit hole before digging myself out before it was too late and the whole day was lost.

            Turns out the redmine that I was going to look for was opened by ME (haha) 10 f**king years ago. Now I don't feel so bad that I forgot about it.

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

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

              Mmm, you can't policy route on an outbound floating rule like that. The routing decision is set before it hits the rule. For the same reason you can't set a load-balance group as the default gateway.

              Potentially it should be possible to set a gateway group on a static route but to do so would require a bunch of new code to build the new routes if any gateway state changed.

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