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

    OpenVPN + OSPF Equal Cost Paths

    Scheduled Pinned Locked Moved FRR
    7 Posts 4 Posters 1.1k Views 4 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.
    • G Offline
      gdi2k
      last edited by

      We have a number of sites that we have interconnected with site to site openvpn links, and we're using FRR OSPF to optimize routing and provide failover routes when WAN links go down etc.

      It all works fine on the whole, but if two paths are of equal cost, the affected link fails. For example:

      N 192.168.12.0/24 [130] area: 0.0.0.0
      via 10.32.120.1, ovpnc2
      via 10.32.164.1, ovpnc1

      In this case, the path cost via ovpnc2 and ovpnc1 are identical (130), and connectivity between the local LAN and 192.168.12.0/24 is broken.

      Does anyone know what causes this, and how to fix it?

      1 Reply Last reply Reply Quote 0
      • jimpJ Offline
        jimp Rebel Alliance Developer Netgate
        last edited by

        Current releases do not support multi-path routing/ECMP, so I'm not sure what it might be trying to do there.

        Just yesterday we enabled RADIX_MPATH in snapshot kernels and multipath support in FRR, so you might give a 2.5.0 snapshot a try once that's built in.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        M 1 Reply Last reply Reply Quote 1
        • M Offline
          mi8088
          last edited by mi8088

          Just saw this after posting my thread - missed it before. Find it here

          I have a similar problem, am not running OpenVPN though (IPSec).

          If you enable firewall logging or packet capture, you might be able to see if your reply traffic is taking the other way back - which doesn't work very well.

          1 Reply Last reply Reply Quote 0
          • jimpJ Offline
            jimp Rebel Alliance Developer Netgate
            last edited by

            If you change your state type to Sloppy on the rules it may help there, though you might need some additional floating rules. Similar to other asymmetric routing issues but not quite so bad since pfSense sees all packets, just not on the same interfaces.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 1
            • G Offline
              gdi2k
              last edited by

              Many thanks for the replies here. For now I've bodged things so that it's mathematically unlikely that two paths will end up with the same cost, but looking forward to trying out multipath support in FRR when it becomes more available / stable.

              mi8088 - I haven't actually taken a look at the packet captures yet, but yes, I imagine you're right that the return traffic is coming back via a different path.

              B 1 Reply Last reply Reply Quote 0
              • M Offline
                mi8088 @jimp
                last edited by

                @jimp
                I've been testing my setup in 2.5.0, but have the same issues still. Do I have to enable the multipath support somehow?

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bbrendon @gdi2k
                  last edited by

                  @gdi2k
                  We deployed VTI+FRR (2.4.4p3) and that was a disaster. We're thinking about trying OpenVPN+FRR. Do you know if this issue is resolved in the newer (v0.6.3_1) versions of FRR?

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