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

    Possible Bug? Aliases in Static Routes not resolving

    Scheduled Pinned Locked Moved Routing and Multi WAN
    8 Posts 3 Posters 228 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.
    • M Offline
      MasterYous
      last edited by

      I know this feature is supposed to work, it's even in the docs!

      On 26.03.01, I have a static route that I need to use for an IPsec VTI tunnel configured in System > Routing > Static Routes

      The destination was an alias, and the gateway was the IPsec endpoint (unmonitored, it doesn't respond to pings).

      Every reboot, the static route did not get installed, and thus traffic to and from the tunnel was silently dropped. Restarting IPsec somehow caused the alias to resolve and work, and the route appeared.

      I was able to work around this by using the literal IP and mask - this makes it work every time. But it seems apparent that using an alias here is supposed to work, and I have tested this over and over again, with two different pfSense boxes on this release (FWIW 26.03 also has this behavior) and it's not working as documented.

      Anyone else seeing this behavior? Wanted to check on it here before filing a bug report.

      Thanks in advance.

      P 1 Reply Last reply Reply Quote 0
      • tinfoilmattT Offline
        tinfoilmatt LAYER 8
        last edited by

        Potentially relevant, potentially not—but I've been seeing the following on CE for as far back as 2.5 or earlier:

        efdd2dda-a743-4155-96aa-92219d9db139-image.png

        557278d0-d1a1-4f5d-b37e-5033d73e38d3-image.png

        The aliases otherwise 'resolve' properly and the static routes install correctly, so I've chalked it up to a webConfigurator formatting bug. But there could be more here.

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          MasterYous @tinfoilmatt
          last edited by MasterYous

          @tinfoilmatt Are you saying some part of the resolution mechanism might be case-sensitive but case can be lost, causing a potential mismatch?

          In my scenario, the case was "correct" in the Routes page, including caps, since it pulled in the alias via auto-suggest.

          Something else is off, as I tested this at least 6 times and it will not create the static route if it's an alias. As soon as I switched to a literal IP, it worked reliably every time.

          tinfoilmattT 1 Reply Last reply Reply Quote 0
          • tinfoilmattT Offline
            tinfoilmatt LAYER 8 @MasterYous
            last edited by tinfoilmatt

            Are you saying some part of the resolution mechanism might be case-sensitive but case can be lost

            Yes. Lost casing is all I could corroborate.

            I can't say anything about potential mismatches as I'm not 100% sure aliases are case insensitive (although, based on this, I assume they are).

            In my scenario, the case was "correct" in the Routes page, including caps, since it pulled in the alias via auto-suggest.

            My scenario is different in that the auto-suggested alias, and the alias itself following selection, appear with correct casing on the "Edit Route Entry" page/in the "Destination network" field—but display with lost casing in the list of static routes, as captured in my earlier reply.

            I feel like I vaguely remember needing to reboot in-between manual-static-route-using-network-alias creation. But that would've been a long time ago. Have you confirmed whether a reboot after creating the static route sees it get installed properly? (Strike that, you mentioned specific use case in OP.)

            1 Reply Last reply Reply Quote 0
            • P Offline
              Patch @MasterYous
              last edited by

              @MasterYous aliases can have unexpected behaviour in pfsense, see https://forum.netgate.com/post/1231744

              In particular

              • do you have duplicate entries in an alias. Changing one of the duplicates eliminates the IP completely from the alias
              • what is the total number of IP in all of your aliases. Pfsense silently stops entering IP in its tables when it reaches it’s limit. Which entries that is varies with calculation order
              M 1 Reply Last reply Reply Quote 0
              • M Offline
                MasterYous @Patch
                last edited by

                @Patch Thanks for replying.

                I only have a single /16 in there right now, the Alias is more about identification rather than convenience. I do have some aliases that have dozens and dozens of records, but this is not one of them.

                Still stumped on this one.

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

                  Following up: I opened a TAC issue on this, as this behavior is worrisome. I will update the forum with that support status when we reach a resolution.

                  I've been able to instantly reproduce this issue by simply converting the static route's destination back to an alias (from the working literal IP block). Upon save, the static route disappears.

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

                    TAC confirmed this as a bug. For anyone interested:

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

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