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

    VTI gateways not adding static routes in 24.03

    Scheduled Pinned Locked Moved IPsec
    88 Posts 5 Posters 13.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic was forked from 24.03 causes issue with remote VPN stephenw10
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      OhYeah 0 @stephenw10
      last edited by

      @stephenw10 said in VTI gateways in 24.03:

      So you resaved the static routes and it created them as expected?

      I'm not sure what you mean by "resaved the static routes", can you clarify?

      The static routes defined for IPSEC tunnels have not loaded, the Netgate 4100 device has been running now close to 24hrs.

      I do not have a disabled gateway.

      LarryFahnoeL stephenw10S 2 Replies Last reply Reply Quote 0
      • LarryFahnoeL
        LarryFahnoe @OhYeah 0
        last edited by

        @OhYeah-0 Stephen's question about resaving the route is related to the steps I was asked to try by Lev (in the redmine above)

        I'm not meaning to hijack your thread, but it would appear we're both stumbling over the same (or related) bug: the static route for a remote network across an IPsec VTI is not being loaded.

        --Larry

        O 1 Reply Last reply Reply Quote 0
        • O
          OhYeah 0
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator @OhYeah 0
            last edited by

            @OhYeah-0 said in VTI gateways in 24.03:

            I'm not sure what you mean by "resaved the static routes", can you clarify?

            I mean if you edit the static route and resave it (without changing anything) does the route then appear?

            So is the static route prevented entirely or just at boot.

            O 1 Reply Last reply Reply Quote 0
            • O
              OhYeah 0 @stephenw10
              last edited by

              @stephenw10 said in VTI gateways in 24.03:

              I mean if you edit the static route and resave it (without changing anything) does the route then appear?

              Nope...

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

                Is there anything you can do to make the static routes return?

                Do you see any errors logged when you resaved the static route? In the System or Routing logs?

                O 1 Reply Last reply Reply Quote 0
                • O
                  OhYeah 0 @stephenw10
                  last edited by

                  @stephenw10 said in VTI gateways in 24.03:

                  Do you see any errors logged when you resaved the static route? In the System or Routing logs?

                  I did see this bit in the "general" section of system logs after I resaved the static routes. These log entries repeated for every static route.

                  May 19 13:32:14 php-fpm 54069 /system_routes_edit.php: Configuration Change: admin@xxx.xxx.xx.xx (Local Database): Saved static route configuration.
                  May 19 13:32:14 check_reload_status 646 Syncing firewall
                  May 19 13:32:16 php-fpm 594 /system_routes.php: Gateway, NONE AVAILABLE
                  May 19 13:32:16 check_reload_status 646 Reloading filter

                  PS. Obscured my IP address.

                  1 Reply Last reply Reply Quote 0
                  • O
                    OhYeah 0 @LarryFahnoe
                    last edited by

                    @LarryFahnoe said in VTI gateways in 24.03:

                    I'm not meaning to hijack your thread, but it would appear we're both stumbling over the same (or related) bug: the static route for a remote network across an IPsec VTI is not being loaded.

                    No no, I was actually relieved to find out that someone else had ran into the same issue.

                    PS. When you resave the static route do you get the same messaged in system logs/general?

                    LarryFahnoeL 1 Reply Last reply Reply Quote 0
                    • LarryFahnoeL
                      LarryFahnoe @OhYeah 0
                      last edited by

                      @OhYeah-0 Yes, same as the messages you show.

                      May 19 16:02:36 pfs-m php-fpm[67932]: /system_routes_edit.php: Configuration Change: fahnoe@192.168.5.67 (Local Database): Saved static route configuration.
                      May 19 16:02:36 pfs-m check_reload_status[645]: Syncing firewall
                      May 19 16:02:36 pfs-m php-fpm[67932]: /system_routes_edit.php: Beginning configuration backup to https://acb.netgate.com/save
                      May 19 16:02:40 pfs-m php-fpm[594]: /system_routes.php: Gateway, NONE AVAILABLE
                      May 19 16:02:40 pfs-m check_reload_status[645]: Reloading filter
                      
                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        No errors? Nothing in the Routing log?

                        O LarryFahnoeL 2 Replies Last reply Reply Quote 0
                        • O
                          OhYeah 0 @stephenw10
                          last edited by

                          @stephenw10 said in VTI gateways in 24.03:

                          No errors? Nothing in the Routing log?

                          Nothing else apart from the "gateway not available" one.

                          I booted the device back into 23.09 until a fix is found.

                          1 Reply Last reply Reply Quote 0
                          • LarryFahnoeL
                            LarryFahnoe @stephenw10
                            last edited by LarryFahnoe

                            @stephenw10 said in VTI gateways in 24.03:

                            No errors? Nothing in the Routing log?

                            No. This is in part why I opened the redmine and am trying to provide information. I believe my config to be quite simple: just a pair of 4200s with an IPsec VTI between them & and static routes to the LANs on either side, so I would have expected that others would be seeing the same thing. It sounds like @OhYeah-0 has a somewhat more complex config but is seeing a similar issue. That such a simple config (as mine is) that was working properly prior to the upgrade to 24.03 spells BUG to me.

                            Earlier I'd asked on the support thread about enabling debugging but got crickets. I see debug is set to false in /etc/inc/globals.inc and am tempted to turn that on. Is there a better or supported way to do that via the GUI somewhere? If so, I haven't found it.

                            --Larry

                            1 Reply Last reply Reply Quote 0
                            • O
                              OhYeah 0
                              last edited by

                              I just remember that I installed another new Netgate 4100 for a new client and that device isn't actively being used, so I can use it for testing. It was immediately updated to 24.03 and it is showing exactly the same behavior.

                              I tried deleting the existing static route and re-create it, it is still not appearing in the routes table. No error messages in system logs -> routing.

                              My gut feeling is that the core reason of the bug is pfsense not considering 0.0.0.0/0 routing valid and thus not applying the static routes to the routes table.

                              LarryFahnoeL 1 Reply Last reply Reply Quote 0
                              • LarryFahnoeL
                                LarryFahnoe @OhYeah 0
                                last edited by

                                @OhYeah-0 As mentioned above, mine are using a /30 transit network rather than the 0.0.0.0/0 config you have, but we seem to be seeing the same thing: the static route doesn't load. My curious gut says: is there a timing issue where the tunnel hasn't come up yet which makes the static route seem invalid? Seems like the logs are not telling us the whole story though.

                                --Larry

                                O 1 Reply Last reply Reply Quote 0
                                • O
                                  OhYeah 0 @LarryFahnoe
                                  last edited by OhYeah 0

                                  @LarryFahnoe said in VTI gateways in 24.03:

                                  My curious gut says: is there a timing issue where the tunnel hasn't come up yet which makes the static route seem invalid?

                                  IPSEC P1 instances have come online in both cases without problems for me.

                                  EDIT: I think I might've have slightly misunderstood your point. It's an interesting thought that it could be a timing issue but I don't ever recall seeing such a problem with pfsense before.

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

                                    Yeah it seems likely it fails to add the route because the gateway is not yet available. If you have a dynamic gateway like that it won't show as up until the link is established.

                                    However I would expect it to then be able to add routes after the VTI and hence the gateway is up.

                                    Using 0.0.0.0/0 means there is not a dynamic gateway so that could be a problem. I'm not sure why that would be any different in 23.09 though.

                                    But I'm surprised the route command doesn't throw an error.

                                    Can you manually add a route at the CLI?

                                    O LarryFahnoeL 2 Replies Last reply Reply Quote 0
                                    • O
                                      OhYeah 0 @stephenw10
                                      last edited by

                                      @stephenw10 said in VTI gateways in 24.03:

                                      Using 0.0.0.0/0 means there is not a dynamic gateway so that could be a problem.

                                      BTW, just to clarify: using 0.0.0.0/0 routing, the gateway IP always showed as "dynamic" in previous versions (in GUI under System -> Routing -> Gateways). In the dashboard it shows as "n/a" as before.

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

                                        Yeah so to add a static route there it would need to be via the interface directly. I'd have to dig into the syntax to test that.

                                        Do you know how that static route appeared in the routing table in 23.09?

                                        O 1 Reply Last reply Reply Quote 0
                                        • LarryFahnoeL
                                          LarryFahnoe @stephenw10
                                          last edited by

                                          @stephenw10 said in VTI gateways in 24.03:

                                          Can you manually add a route at the CLI?

                                          Yes, but the question is when. With the system up and tunnel functioning I can add another route (to a bogus network for test):

                                          # route add -net 192.168.15.0/24 192.168.8.2
                                          add net 192.168.15.0: gateway 192.168.8.2
                                          

                                          I can reboot later this morning but the tunnel comes up immediately, so it will likely not throw any error by the time I log in to add the route via the CLI. Again, one one system, rc.newwanip triggers the route to be added about 15 min after reboot.

                                          Any insight to offer on my question about enabling debugging?

                                          --Larry

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

                                            Setting that would not give you any additional debug info AFAIK.

                                            Hmm, yet resaving the static route does not create the route which should run that exact same command.... 🤔

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