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

BGP Routing Issue: Traffic Still Preferring Default Route Despite Prepending and MED Adjustments

FRR
4
31
2.5k
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.
  • M
    michmoor LAYER 8 Rebel Alliance @Kevin S Pare
    last edited by michmoor Feb 6, 2025, 3:46 PM Feb 6, 2025, 3:43 PM

    @Kevin-S-Pare

    Known issue.

    https://redmine.pfsense.org/issues/14630
    https://redmine.pfsense.org/issues/14633#note-2

    Supposedly, script support is needed in FRR to fix
    @marcosm Any fix incoming for this?

    Firewall: NetGate,Palo Alto-VM,Juniper SRX
    Routing: Juniper, Arista, Cisco
    Switching: Juniper, Arista, Cisco
    Wireless: Unifi, Aruba IAP
    JNCIP,CCNP Enterprise

    K 1 Reply Last reply Feb 6, 2025, 3:50 PM Reply Quote 0
    • K
      Kevin S Pare @michmoor
      last edited by Feb 6, 2025, 3:50 PM

      @michmoor said in BGP Routing Issue: Traffic Still Preferring Default Route Despite Prepending and MED Adjustments:

      @Kevin-S-Pare

      Known issue.

      https://redmine.pfsense.org/issues/14630
      https://redmine.pfsense.org/issues/14633#note-2

      Supposedly, script support is needed in FRR to fix
      @marcosm Any fix incoming for this?

      Shouldn't a low state time help fix this issue too? or are the states just kinda glued in there.

      I even tried marking the gateway as down but until I actually unplugged the cable and made it down, then it killed the states....not very graceful lol....

      im trying to not spend money on some cisco isr for my bgp, but this is just making my case unfortunately....

      M 1 Reply Last reply Feb 6, 2025, 3:58 PM Reply Quote 0
      • M
        michmoor LAYER 8 Rebel Alliance @Kevin S Pare
        last edited by Feb 6, 2025, 3:58 PM

        @Kevin-S-Pare

        To be fair, i would never use a stateful device(firewall) to handle BGP routing to the internet.
        You are even considering a Cisco ASR which is correct - use a router not a firewall.

        Firewall: NetGate,Palo Alto-VM,Juniper SRX
        Routing: Juniper, Arista, Cisco
        Switching: Juniper, Arista, Cisco
        Wireless: Unifi, Aruba IAP
        JNCIP,CCNP Enterprise

        K 2 Replies Last reply Feb 6, 2025, 4:01 PM Reply Quote 0
        • K
          Kevin S Pare @michmoor
          last edited by Feb 6, 2025, 4:01 PM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • A
            amithb @Kevin S Pare
            last edited by Feb 6, 2025, 5:14 PM

            @Kevin-S-Pare Thanks for checking on this issue. I haven’t found a solution yet, so I’m currently managing with static routes as a workaround. Any guidance or suggestions to try out would be greatly appreciated.

            K 2 Replies Last reply Feb 6, 2025, 5:15 PM Reply Quote 0
            • K
              Kevin S Pare @amithb
              last edited by Feb 6, 2025, 5:15 PM

              @amithb said in BGP Routing Issue: Traffic Still Preferring Default Route Despite Prepending and MED Adjustments:

              @Kevin-S-Pare Thanks for checking on this issue. I haven’t found a solution yet, so I’m currently managing with static routes as a workaround. Any guidance or suggestions to try out would be greatly appreciated.

              I'll do some testing friday night and see how lowering the state timeout goes.

              1 Reply Last reply Reply Quote 0
              • K
                Kevin S Pare @michmoor
                last edited by Feb 6, 2025, 7:54 PM

                @michmoor said in BGP Routing Issue: Traffic Still Preferring Default Route Despite Prepending and MED Adjustments:

                @Kevin-S-Pare

                To be fair, i would never use a stateful device(firewall) to handle BGP routing to the internet.
                You are even considering a Cisco ASR which is correct - use a router not a firewall.

                I was actually considering picking up a ASR1001X-20G instead of running pfsense for my bgp peers.

                But reading about it, i'm not 100% sure its not still a stateful firewall?

                M 1 Reply Last reply Feb 6, 2025, 8:18 PM Reply Quote 0
                • K
                  Kevin S Pare @amithb
                  last edited by Feb 6, 2025, 7:58 PM

                  @amithb we host hundreds of citrix sessions, and with the states low we are getting complaints about disconnects so we've change the settings back and will be looking to replace pfsense as our bgp router....just isn't working how we need it.

                  A 1 Reply Last reply Feb 7, 2025, 12:16 PM Reply Quote 0
                  • M
                    michmoor LAYER 8 Rebel Alliance @Kevin S Pare
                    last edited by Feb 6, 2025, 8:18 PM

                    @Kevin-S-Pare said in [BGP Routing Issue: Traffic Still Preferring Default Route Despite

                    But reading about it, i'm not 100% sure its not still a stateful firewall?

                    Reply

                    Not sure what you are asking. Is an ASR1001 a firewall or router? Its a router. Routers are not stateful devices by nature. If you take advantage of the SDN side (the license is expensive) its a very robust platform.

                    If you want a cost-effective solution and still stick with netgate I know they offer TNSR. Ive been playing with it and its not bad. Granted I'm coming from an Arista/Juniper background so TNSR has some shortcomings that would prevent me from deploying in an enterprise but it does BGP. It can handle routes.

                    As an aside...I deployed Cumulus a few years ago and that turned me totally off on using OSS network gear. I made the exception with Netgate but man...I would never do that again.

                    The pfSense firewall just isn't meant to route at the edge using BGP. Minus the shortcoming you are seeing with FRR and pfsense holding onto states, I personally would not design any solution that requires tracking state and also doing bgp. Firewall behind the router.

                    Firewall: NetGate,Palo Alto-VM,Juniper SRX
                    Routing: Juniper, Arista, Cisco
                    Switching: Juniper, Arista, Cisco
                    Wireless: Unifi, Aruba IAP
                    JNCIP,CCNP Enterprise

                    K 1 Reply Last reply Feb 6, 2025, 8:25 PM Reply Quote 0
                    • K
                      Kevin S Pare @michmoor
                      last edited by Feb 6, 2025, 8:25 PM

                      @michmoor said in BGP Routing Issue: Traffic Still Preferring Default Route Despite Prepending and MED Adjustments:

                      @Kevin-S-Pare said in [BGP Routing Issue: Traffic Still Preferring Default Route Despite

                      But reading about it, i'm not 100% sure its not still a stateful firewall?

                      Reply

                      Not sure what you are asking. Is an ASR1001 a firewall or router? Its a router. Routers are not stateful devices by nature. If you take advantage of the SDN side (the license is expensive) its a very robust platform.

                      If you want a cost-effective solution and still stick with netgate I know they offer TNSR. Ive been playing with it and its not bad. Granted I'm coming from an Arista/Juniper background so TNSR has some shortcomings that would prevent me from deploying in an enterprise but it does BGP. It can handle routes.

                      As an aside...I deployed Cumulus a few years ago and that turned me totally off on using OSS network gear. I made the exception with Netgate but man...I would never do that again.

                      The pfSense firewall just isn't meant to route at the edge using BGP. Minus the shortcoming you are seeing with FRR and pfsense holding onto states, I personally would not design any solution that requires tracking state and also doing bgp. Firewall behind the router.

                      You are very correct. it's just not working how I want it to work. I found a pretty good deal on a asr1009-20gb i'll pick up and try out instead.

                      M 1 Reply Last reply Feb 6, 2025, 10:29 PM Reply Quote 1
                      • M
                        michmoor LAYER 8 Rebel Alliance @Kevin S Pare
                        last edited by michmoor Feb 6, 2025, 10:30 PM Feb 6, 2025, 10:29 PM

                        @Kevin-S-Pare

                        Another option to think of and I'm not sure how well this would work is for each BGP peer, you have gateway monitoring enabled. Monitor IP can be whatever you want just different for each BGP peer.

                        There is an option when the gateway fails to kill states

                        https://docs.netgate.com/pfsense/en/latest/config/advanced-misc.html#state-killing-gateway-failure

                        🔒 Log in to view

                        Firewall: NetGate,Palo Alto-VM,Juniper SRX
                        Routing: Juniper, Arista, Cisco
                        Switching: Juniper, Arista, Cisco
                        Wireless: Unifi, Aruba IAP
                        JNCIP,CCNP Enterprise

                        K 1 Reply Last reply Feb 6, 2025, 10:42 PM Reply Quote 0
                        • K
                          Kevin S Pare @michmoor
                          last edited by Feb 6, 2025, 10:42 PM

                          @michmoor
                          I actually have that enabled….i forced the gateway down but it still didn’t reset the states until it was actually down…

                          M M 2 Replies Last reply Feb 6, 2025, 10:44 PM Reply Quote 0
                          • M
                            michmoor LAYER 8 Rebel Alliance @Kevin S Pare
                            last edited by Feb 6, 2025, 10:44 PM

                            @Kevin-S-Pare
                            Ok yeah that sucks…migrate…

                            Firewall: NetGate,Palo Alto-VM,Juniper SRX
                            Routing: Juniper, Arista, Cisco
                            Switching: Juniper, Arista, Cisco
                            Wireless: Unifi, Aruba IAP
                            JNCIP,CCNP Enterprise

                            K 1 Reply Last reply Feb 6, 2025, 10:45 PM Reply Quote 0
                            • K
                              Kevin S Pare @michmoor
                              last edited by Feb 6, 2025, 10:45 PM

                              @michmoor yup! Ordering the Cisco today

                              M 1 Reply Last reply Feb 6, 2025, 10:58 PM Reply Quote 0
                              • M
                                michmoor LAYER 8 Rebel Alliance @Kevin S Pare
                                last edited by Feb 6, 2025, 10:58 PM

                                @Kevin-S-Pare
                                Just frustrating.
                                This is a similar situation I ran into with Cumulus. I’m all for open source software and do want to support but there are just situations I find myself in where something basic just doesn’t work. whether it’s an IPsec bug or dynamic routing. It’s just frustrating so I understand where you are coming from.

                                Firewall: NetGate,Palo Alto-VM,Juniper SRX
                                Routing: Juniper, Arista, Cisco
                                Switching: Juniper, Arista, Cisco
                                Wireless: Unifi, Aruba IAP
                                JNCIP,CCNP Enterprise

                                K 1 Reply Last reply Feb 6, 2025, 11:05 PM Reply Quote 0
                                • K
                                  Kevin S Pare @michmoor
                                  last edited by Feb 6, 2025, 11:05 PM

                                  @michmoor we’ve done some amazing stuff with Netgate so I can’t complain….they are doing great things but they have their limits and their place…

                                  M 1 Reply Last reply Feb 6, 2025, 11:43 PM Reply Quote 1
                                  • M
                                    michmoor LAYER 8 Rebel Alliance @Kevin S Pare
                                    last edited by Feb 6, 2025, 11:43 PM

                                    @Kevin-S-Pare

                                    If you have the Netgate 8200 or 8300 I forget which one you said, I would seriously reach out to Netgate sales and ask for TNSR. It’s close to Cisco syntax and it’s better suited for your task

                                    Firewall: NetGate,Palo Alto-VM,Juniper SRX
                                    Routing: Juniper, Arista, Cisco
                                    Switching: Juniper, Arista, Cisco
                                    Wireless: Unifi, Aruba IAP
                                    JNCIP,CCNP Enterprise

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      marcosm Netgate @Kevin S Pare
                                      last edited by marcosm Feb 7, 2025, 1:06 AM Feb 7, 2025, 12:57 AM

                                      @Kevin-S-Pare said in BGP Routing Issue: Traffic Still Preferring Default Route Despite Prepending and MED Adjustments:

                                      @michmoor
                                      I actually have that enabled….i forced the gateway down but it still didn’t reset the states until it was actually down…

                                      The "force gateway down feature" is a bit misleading and could probably use better wording and or further consideration. Forcing the gateway down doesn't trigger the same action as a link/packet issue hence why it doesn't kill states. If the gateway is forced down, it shouldn't be getting used so the states that already exist on it won't come back once they expire. If you want to immediately kill the states on top of preventing the gateway from being used, then you can force it down then separately kill states for that gateway from either Status > Gateways or Diagnostics > States.

                                      FWIW it sounds like you may have TAC. They are a great resource and ultimately would have been able to explain/resolve both the state policy and gateway issue.

                                      @michmoor brings up some good points about stateful filtering for routing. It does sound like TNSR would be better suited in your environment but that's not to say pfSense couldn't be made to work either. There have been times I've made the same decision to try an alternative product to then later on learn more about the issue and realize how it could have been solved. At the same time for better and worse the alternative brought its own challenges. Those kinds of things keep you humble.

                                      M 1 Reply Last reply Feb 7, 2025, 11:53 PM Reply Quote 1
                                      • A
                                        amithb @Kevin S Pare
                                        last edited by amithb Feb 7, 2025, 12:16 PM Feb 7, 2025, 12:16 PM

                                        @Kevin-S-Pare said in BGP Routing Issue: Traffic Still Preferring Default Route Despite Prepending and MED Adjustments:

                                        @amithb we host hundreds of citrix sessions, and with the states low we are getting complaints about disconnects so we've change the settings back and will be looking to replace pfsense as our bgp router....just isn't working how we need it.

                                        @Kevin-S-Pare - No worries. I think I got some ideas to try from the conversation here.

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          michmoor LAYER 8 Rebel Alliance @marcosm
                                          last edited by Feb 7, 2025, 11:53 PM

                                          @marcosm The FRR with stateful handling is a big deal. Will there be any incoming fix? Redmine was noted a few posts above

                                          Firewall: NetGate,Palo Alto-VM,Juniper SRX
                                          Routing: Juniper, Arista, Cisco
                                          Switching: Juniper, Arista, Cisco
                                          Wireless: Unifi, Aruba IAP
                                          JNCIP,CCNP Enterprise

                                          M 1 Reply Last reply Feb 10, 2025, 4:23 PM Reply Quote 0
                                          14 out of 31
                                          • First post
                                            14/31
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.