I always go for low hanging fruit when troubleshooting. You initially said you rebooted a VM, then said your bare metal wasn’t up. I’m assuming you can’t ping your server. Maybe the VPN service didn’t start like you expected. If you have no mechanism to SSH, or otherwise connect to your server you’re not going to have a lot of options.
Self-Hosted Main
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
For Example
- Service: Dropbox - Alternative: Nextcloud
- Service: Google Reader - Alternative: Tiny Tiny RSS
- Service: Blogger - Alternative: WordPress
We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.
Useful Lists
- Awesome-Selfhosted List of Software
- Awesome-Sysadmin List of Software
You should put a smart plug on your remote server with the bios setting to always power on after power loss.
This won’t help you if you’ve fucked up network settings, but it’s a life saver if your computer locks up or doesn’t come back.
Turn off the smart switch, wait a few seconds and turn it back on again, your computer should start back up.
I dont think there is anything to do now, except manually interact with your server.
For next time, I suggest buying a smart plug, smart outlet, whatever you call it, and configure your server bios to always come back on after power comes back to it.
Though, if you fucked the network settings of your machine, that wouldn't fix anything about it.
What I have is a Raspberry Pi with a wireguard vpn on it, so in the worst case, I can ssh into it, then SSH into a server in the same local network.
But again, if the network settings are so fucked that it doesn't even connect to the local network anymore, there is nothing much to do except going to the server and fixing it there.
Unless you have a PiKVM (Its a raspberry pi with an HDMI In/Out that can interact with your computer even if its off), an IMPI/ILO/iDRAC (its a chip on server motherboards that can power on/power off/show screen of the server even if it's off).
Good luck for your adventures
It can have many reasons as to why the server won't connect again. Most likely one of the configurations changes caused it to loose internet connectivity. Don't worry, it happens to everyone at some point.
I can't tell you what exactly you did wrong, but I can give you tips on how to prevent it in the future:
Firstly, take the time to research about whichever service you want to change. Typically, there is a way to reboot any service, without rebooting the entire server. Once you figured that out, you can write a little script that backd up your original config, applies the new one and then reverts the old one back unless you manually cancel within 30 or more seconds.
This ensures that, if your server does loose internet connectivity, your changes are reverted automatically. If everything works as exoected, you just CTRL + C to cancel the rest of the script. Also make sure to spawn the script in an independant tool like tmux, so it doesn't end with your session.
Only once you are sure that all your configs 100% work, you may or may not fully restart the server.