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

    IPSEC - Routed VTI interface randomly assuming default gateway

    Scheduled Pinned Locked Moved IPsec
    2 Posts 2 Posters 565 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.
    • D
      dave10x
      last edited by

      The default gateway is set to automatic by default. When an IPsec VTI interface is set up it is allocated as a new gateway to the VPN network.

      We have a Netgate-6100 that has been sporadically setting the default gateway to the IPSEC VTI interface. This has caused a lot of pain and suffering as it has been randomly routing all our traffic down the VPN.

      I think it needs adding to documentation on Routed VTI to check the gateway setting and apply a fixed gateway if required.

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

        While it may be unexpected for you, it's doing what it was told to do. Namely, it picked a default gateway automatically. It's safest to ship with that on automatic as it ensures the most likely path to success initially. Once you add more interfaces with gateways it's not so simple, though. It's easy enough to change the default gateway to a specific entry (or a gateway group expressing your automatic failover preference).

        I thought we had a warning in the docs but I don't see one now. I'm probably thinking of WireGuard which does have a warning.

        I'll look into adding a similar note to the VTI docs.

        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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.