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

    Static route

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 2 Posters 829 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.
    • S
      samham
      last edited by

      how would I create a static route to a destination that is reachable equally via LAN1 and LAN2?

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

        You can add it in System > Routing > Static Routes. You must have the upstream gateway defined on whichever interface you wish to route via first though.

        Or are you trying to define some sort of failover there?

        Steve

        1 Reply Last reply Reply Quote 0
        • S
          samham
          last edited by

          thank for the reply, I have two gateways defined GW_LAN1 and GW_LAN2 I added the static route through the first gateway but when i try to added to the second gateway I get "A route to these destination networks already exists: " a failover solution is also acceptable.

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

            What are you routing there?

            You cannot define conflicting static routes like that as you saw.

            You may be able to use policy based routing with a failover gateway group. Other wise you will need to use some sort of dynamic routing protocol like OSPF.

            Steve

            1 Reply Last reply Reply Quote 0
            • S
              samham
              last edited by

              can't do dynamic routing, it has to be something like a floating static, how do configure policy-based routing on pfsense?

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

                You could only do policy based routing on traffic that entered the firewall via some other interface. So port forwards on WAN maybe or traffic from LAN3 for example. Traffic from the firewall itself cannot use it as it must hit a firewall rule with the failover gateway group defined going into the firewall.

                https://www.netgate.com/docs/pfsense/book/multiwan/load-balancing-and-failover.html

                Steve

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