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

    HEADS UP: PPP WAN (PPPoE, L2TP, etc) default gateway changes

    Scheduled Pinned Locked Moved 2.3-RC Snapshot Feedback and Issues - ARCHIVED
    2 Posts 2 Posters 859 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      I believe I located the source of the trouble with default gateway switching and PPP style WANs. With "set iface route default" in the mpd config, it was removing the default route when the PPP link was lost even when it did not match what it put in place. I omitted that line and put a safety belt in ppp-linkdown to stop it from removing the gateway when it doesn't match.

      I tested this with default gateway switching on and off, by rebooting, manually disconnecting the PPP link, and manually disconnecting the NIC link, worked each time, though still possible some issues remain. Feedback appreciated.

      Before this fix, if a PPP WAN was the default gateway, the automatic switching would fail  (it would work for a moment, then die, and might come back if something tickled the gateway code right), now it should flip immediate as soon as the default gw goes down and flip back when it recovers.

      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 0
      • A
        athurdent
        last edited by

        Thanks for the Heads Up. Don't have any PPP connections but I updated/gitsynced and tested: Default Gateway Switching with two static GWs still works fine.

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