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

Static route

Scheduled Pinned Locked Moved General pfSense Questions
6 Posts 2 Posters 824 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 Aug 12, 2018, 4:19 PM

    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
    • S
      stephenw10 Netgate Administrator
      last edited by Aug 12, 2018, 5:44 PM

      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 Aug 12, 2018, 6:02 PM

        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
        • S
          stephenw10 Netgate Administrator
          last edited by Aug 12, 2018, 6:53 PM

          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 Aug 12, 2018, 9:36 PM

            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
            • S
              stephenw10 Netgate Administrator
              last edited by Aug 12, 2018, 10:23 PM

              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
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received