---
title: "Discussion on \"Internet Failover with Netplan and iptables on Ubuntu 24.04\" | Hashnode"
description: "Discussion on \"Internet Failover with Netplan and iptables on Ubuntu 24.04\". Lately, my internet has been throwing tantrums — not because the connection itself is bad, but because every time the power blinks, my router decides it's time for a little nap. Naturally, the obvious"
url: "https://hashnode.com/posts/internet-failover-with-netplan-and-iptables-on-ubuntu-2404/684be414860c6101730e11ee"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Internet Failover with Netplan and iptables on Ubuntu 24.04](https://blog.vivekkaushik.com/internet-failover-with-netplan-and-iptables-on-ubuntu-2404?utm_source=hashnode&utm_medium=feed)

Lately, my internet has been throwing tantrums — not because the connection itself is bad, but because every time the power blinks, my router decides it's time for a little nap. Naturally, the obvious

Jun 13, 2025 · 11 min read · blog.vivekkaushik.com  
Updated May 13  
Read the article

-   [#internet-failover](https://hashnode.com/tag/internet-failover)
-   [#ubuntu](https://hashnode.com/tag/ubuntu)
-   [#router](https://hashnode.com/tag/router)
-   [#internet](https://hashnode.com/tag/internet)
-   [#networking](https://hashnode.com/tag/networking)
-   [#netplan](https://hashnode.com/tag/netplan)

## Written by

[Vivek Kaushik](https://hashnode.com/@iamvivekkaushik)

@iamvivekkaushik · India

  
[View profile](https://hashnode.com/@iamvivekkaushik)

I write code, design stuff and make apps.

Hi, I am Vivek, a 26 years old developer from India. I love making apps. You can check my github for some of my open source projects.

## Responses 3

Markdown supported · ⌘↵ to post

[stephenholden](https://hashnode.com/@sdholden)

[May 11](https://hashnode.com/posts/internet-failover-with-netplan-and-iptables-on-ubuntu-2404/684be414860c6101730e11ee/comment/6a022771fca21b0d4b5b35cf)

Hi Vivek. I am trying to use your solution, but you didn't share the 'set\_interface.sh' script...

[Vivek Kaushik](https://hashnode.com/@iamvivekkaushik)

[May 13](https://hashnode.com/posts/internet-failover-with-netplan-and-iptables-on-ubuntu-2404/684be414860c6101730e11ee/comment/6a022771fca21b0d4b5b35cf#reply-6a04373752a9c969d6236595)

Hey, you can replace it with failover.sh, this must've been left over while I was testing this. Will update the article.

[Vivek Kaushik](https://hashnode.com/@iamvivekkaushik)

[May 13](https://hashnode.com/posts/internet-failover-with-netplan-and-iptables-on-ubuntu-2404/684be414860c6101730e11ee/comment/6a022771fca21b0d4b5b35cf#reply-6a04381d52a9c969d6242194)

You can try it out, however I've actually moved on from this setup to openwrt, that is way more reliable.
