I just wanted to see what other selfhosters backup emergency plan is if the primary internet router goes offline but the internet isn’t out (ie a router reboot would fix the problem), leaving you without access to your stuff even via vpn.
the options I’ve considered so far:
- cellular smart plug to reboot router
I tried a ubibot smart plug (SP1) that is supposed to work with cellular, but the device or sim is bad. I’m currently troubleshooting. The problem with this one is it requires a proprietary cloud service, it’s supposedly self hostable, but it’s a pia to setup and their app port can’t be changed easily allowing for a reverse proxy setup on VPS.
- the other option I am considering is cellular wifi router and a wifi smart plug connected to that device to reboot router
what other options have I overlooked? Also, specific models of devices would be helpful info from others doing this already.
TIA!
Edit: also just thought of possibly a cellular internet backup on my opnsense box, but from everything I’ve read that’s also very involved to setup
Edit2: I’ve setup a homeassistant automation to reboot a zigbee smart plug if 2 external hosts are down for 15 mins, will try this out for a bit. I still need tp troubleshoot why the device goes down in General. Thanks for all the responses and ideas!
I had a 4G modem with a web interface many years ago. It was flaky and would often hang. I just had a raspberry pi on my network pinging some known address, if it failed for long enough it’d replay the commands to restart the web interface.
If I’d have the same problem today I’d probably have home assistant power cycle the router with a smart plug.
homeassitant access would require internet wouldn’t it?
Nah, you can use an HA Ping (Settings>Add Integration-> Ping) trigger against 9.9.9.9 or whatever and run a script if it comes back false for X minutes
I already run homeassistant, that’s def something to look into. Thanks!
It didn’t happen in more than 5 years…
For critical equipment you need to spend the extra dollar to minimize this kind of stuff
I don’t understand this comment? Your router hasn’t gone down in 5 years, is that what you’re saying?
Yep, at least for their own internal mistake. I rebooted them a few times in that time because updates and important config updates. Even for power outages (2 iirc) they are resilient, they are set to automatic boot up when the power is back.
deleted by creator
Grammar aside, not having to reboot a router in 5 years isn’t unreasonable.
I’ve moved my instant messenger onto a VPS and that has a good uptime. And I’m somewhat okay if my Nextcloud and calendars don’t sync. Most important data is synced anyway.
Other than that I’ve called my ISP a bunch of times to give me a new router, they refused, I canceled the subscription and made a new one and got a new router. And that one is better. And in doubt I’ll call a family member.
The term to look for is out of band management. Typically this will provide serial/console access to a device, and can often perform actions like power cycling. A lot of server hardware has this built in (eg idrac for Dell, IPMI generically). Some users will have a separate oobm network for remotely accessing/managing everything else.
On holiday, I’ll turn on my router’s auto-reboot option to reboot daily.
That’s not a bad idea, I def didn’t think of that lol. Thanks!
Its my house so ill just walk over and fix it.
If im out, nothing is too important enough that it cant be fixed in a couple of days.
see 1st reply, not really helpful in this situation
So far it never happened but just in case I always leave one of my keys at some neighbors. I do it anyway because if something happens like broken pipe, it’s good when someone can just enter home without destroying our doors.
If you use a regular PC as the router you can attach a KVM to remote control and reboot it.
I think this is about the case where you can’t connect to that KVM
That KVM can be on a separate connection.
which is what the original question is about…what people are using for backup/emergency internet.
Edit:that probably wasn’t clear
I have a Shelly plug that is programmed internally to turn itself on if off for 20 seconds. Home assistant turns the plug off for 10 seconds if curl ip.me fails for 15 minutes.
My modem is plugged into that.
I’ve never had a router or firewall crash if I wasn’t fucking with it and did something
stupidill-advised, so I don’t try that kind of stuff unless I’m home.I’ve got one of those KeepConnect smart plugs which monitors a few different external servers and their own cloud, and automatically power cycles its outlet if things don’t work. They’ve damn near doubled in price since I’ve bought mine but it does work very well for me. Annual fee is reasonable too.
I could build something similar but I have too many projects as it is, and I feel I’d be fiddling with it endlessly just because I can. This is literally set and forget and in the last 2y it’s cycled the outlet 48 times, most of them in the middle of the night, presumably with my cable provider maintenance windows.
I’m thinking this is probably my best option if I can get past the using cloud service issue in my head lol.
I do recall seeing the keepconnect a while ago, but completely forgot about it. will definitely look into this! I guess the main issue I see is that it uses a cloud service, what happens when that service goes offline permanently?
If you were able to capture some traffic, you could probably figure out what its hitting and the response its looking for and then override that dns entry and fake that from your homelab or you’re own cloud hosted app/lambda/api.
At the enterprise level an Opengear appliance fixes this.
Tripplite PDUs have an option to perform a ping test against an ip, and if it stops responding it can power cycle the outlet of your choice.
If you want to get fancy you can advertise routes from two routers into your L3 switch and if a route goes down your switch will use the backup.
Redundancy. I have two independent firewalls, each separately routing traffic out through two totally independent multi-homed network connections (one cable, one DSL, please god somebody give me fiber someday) that both firewalls have access to. For awhile was thinking of replacing the DSL with starlink until Elon turned out to be such a pile of nazi garbage, so for now DSL remains the backup link.
To make things as transparent as possible, the firewalls manage their IPs with CARP. Obviously there’s no way to have a single public IP that ports itself magically from one ISP to another, but on the LAN side it works great and on the WAN side it at least smooths out a lot of possible failure scenarios. Some useful discussions of this setup are here.
For me I’d just say oh well, gotta fix it when I’m home again.
Otherwise I’d probably write some script on the server, which reboots my router when the server either doesn’t have internet anymore or can’t ping itself.
This only works if you’re planning on being home within a reasonable time. The situation that got me thinking about it in the first place was, I was out of state for several weeks and my router went down a couple days into my trip and had no access to jellyfin (mind you at the time this was really the only service I really wanted). So I had to call my brother who lives 30 mins away to go reboot my router.
-
If your problem is brief brownouts or similar — my experience is that some consumer broadband routers have cheap power supplies that leaves them in bad states when PCs will pull through — you could put them on a UPS.
-
If your problem is that your router is unstable, you could just replace your router. Like, if you need remote access and you have a flaky router, that seems like a prime choice.
-
You could have a power control device or something and have another machine on your network set up so that if it loses Internet connectivity for some sustained period of time, it power-cycles the router.
-
If this is for when you’re a long ways away, do you have a friend who you’d trust with a key and flipping a switch?
-
I expect that there are business-oriented routers that will have integrated watchdog features that will auto-reboot if they hang. I have not gone looking, though.
-
Possibly, if it’s compatible with your use case, and uptime is critical enough here, having a second, backup server elsewhere, possibly not self-hosted. I mean, your connectivity is always going to be bounded by the reliability of your residential Internet connection otherwise.
I am looking into why it locks up, that’s a fair point. good read, and useful tips. Thanks!
-
Old laptop with SIM card and some outbound remote access (eg logmein, Tailscale) is what some people I know use. But it’s an expense. I just have a reboot script.