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.
Rules:
Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.
No spam posting.
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.
Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
No trolling.
Resources:
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
When you say remotely you mean over the internet, right? Or did you mean remotely within the same LAN e.g. from your living room or wherever.
By default WOL doesn’t work over the internet AFAIK. The wikipedia page mentions it a bit https://en.wikipedia.org/wiki/Wake-on-LAN#Subnet_directed_broadcasts
Like others said you may be able to get that going with a VPN or anything VPN-like that allows broadcasts between connected systems. Or if your motherboard supports IPMI / IMM you should be able to connect to the system & perform power functions that way.
In my case my motherboard doesn’t have those sort of management functions so in the end I settled on logging into my router remotely & initiated WOL through there. That could be another option for you if your network router is capable of sending WOL packets to the LAN.
A lot of people are saying WOL doesn’t work over the internet, but I’ve got it working.
Basically port forward UDP 9 to your broadcast address (the last possible IP in your subnet), eg.
192.168.1.255
. Then send the WOL to your public IP which will then get broadcasted out over your network by your router.Typing this out, I realised this seems like a horrible security practice, so I’ll probably disable it soon anyway, now that I’ve got multiple servers and a failover VPN.
It’s not that it doesn’t work, it’s that it’s anybody’s guess if any of the hops will pass it along. The odds are overwhelmingly in favor of it getting snagged somewhere along the way.
Well it’s just UDP so isn’t that just how the internet works, but yeah when I did do it, I’d often spam a bunch of packets, sometimes just sending one didn’t work, but multiple always worked.
I mean… just because a packet can be routed doesn’t mean it will be. Don’t be fooled by “mainstream” packets like TCP on 443 which is practically guaranteed to be routed everywhere and prioritized because it’s HTTP. Not all packets get the VIP treatment (if they’re even routed at all), and WoL is a pretty obscure one.
That’s sort of what I mean by “just how the internet works” where “it’s that it’s anybody’s guess if any of the hops will pass it along.”
Like yeah I understand TCP has protections against dropped packets, but that’s only because it re-requests the packets it thinks are lost or corrupt.
Also HTTP and WOL are at a different layer, they’re both TCP and UDP respectively, so it shouldn’t matter whether if the App layer is obscure or not. Heck the routers of the internet only look at the IP layer, so it can’t even tell if it’s TCP 443, and you could probably even write your own Transport layer protocol and route it over the internet.
Although I guess firewalls could do some prioritisation, and wouldn’t like this new transport layer, but they’re usually near the ends of the connection, not in the middle, and I was taught to prioritise VoIP stuff anyway.
TCP/IP model for reference:
*I have not much experience so I may have made some mistakes, but I’m currently completing a CCNA so it should be somewhat correct.
yeah, tunneling into your local network and then calling WoL from there is the way to go.
Yeah, I only really used it when the computer running my tunnel wasn’t on, but that’s not an issue for me anymore.
Do the lights on the network card light up when it’s connected but off? I believe you should have blinking lights if the card is on. Might be some kind of power setting in the bios to keep the network card on/off?
I have had hit and miss WoL on some of my machines, one work around is to use a smart plug of some kind to turn the power on/off, and there should be a setting to boot the PC when the power reconnects? May not directly help you, but might also be easier?
removed by mod
I think the integrated card can still be power saved off, but it might depend on the motherboard and/or bios.
Might also be worth seeing if the WOL magic packet is actually being sent properly, by running tcpdump/Wireshark on your server and triggering WOL. https://unix.stackexchange.com/a/537886 Maybe try a different PC to send the WOL packet if it doesn’t arrive?
removed by mod
I was using windows desktop machines with teamviewer and anydesk and both could wol without port forwarding. Recently I switched to linux and rustdesk and I couldnt figure out how to do the same. So I got workaround, using upsnap docker container that has simple gui with button to turn on devices over wol. So i login to upsnap, turn on machine and then login with remote control. Still looking for all in one solution. I use wireguard to connect to upsnap (wg port open) but Im using it for other services as well.
Other than bios, I remember I had to enable WOL in windows to make it work, not sure is it different for win server.
removed by mod
No way Im afraid, but if your mobo allows WOL you should be able to use it with windows and anydesk or teamviewer. Make sure you enable WOL in windows. Iirc you have to open network adapter properties to enable magic packets. Also bios settings, but you said that you enabled it there
removed by mod
In network adapter properties. Its been a while since I did that, but quick google gave me this
What I do is using OliveTin behind a reverse proxy (traefik with auth) on a Pi. I then have a button in olivetin that sends WoL commands through local network to turn in my ‘big’ server. You can probably run it without issues on a Pi0.
Alternatively, if you have a VPN to your home network, is using an app on your phone to send WoL commands when connected to the VPN. I have tested with both ‘Magic Packet’ and ‘Net Status’ on iOS through WireGuard.
removed by mod
I run a wireguard service on my Unifi Edgerouter and it works pretty well for that situations. I can also (in theory) send WOL packets from home assistant but i’ve never tried.
Yes, your router can likely act as a VPN server, but I would definitely have a hardware firewall if you’re going to be exposing ports to the public internet.
Also, a wifi adapter for the server is going to be better than a powerline adapter. What I did for my home lab was bought some cheap Netgear routers and turned them to bridge mode and hooked all 4 ports from the server to the router.
Some routers can act as a VPN, but I don’t think an ISP provided one can.
I would suggest you get a raspberry pi zero W or equivalent(like orange pi zero) and setup a WireGuard server on that. It’s only like $15.
That way you can vpn to your network and access devices / services without opening any additional ports.
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:
7 acronyms in this thread; the most compressed thread commented on today has 6 acronyms.
[Thread #62 for this sub, first seen 18th Aug 2023, 18:36] [FAQ] [Full list] [Contact] [Source code]
I suggest to read up on the way Wake On Lan works, it’s pretty neat. it has to send a packet to a local broadcast address. I don’t think that can route over the internet so you need some device to send the packet from on the network or over a VPN connection.
For the KVM part, that model server should have some form of remote control. I think they called it the Integrated Management Module (IMM) on those things. The IMM is running as long as the server has power, it’s a tiny independent system. They have various licenses/feature sets but at minimum it should get you a web interface to see status of the server as well as power it on & off. It may also have remote console and media options but those are add-on costs so not everybody buys them. The default login information should be somewhere on the chassis unless it was removed or got lost. The old defaults used to be username all uppercase ‘USERID’ with password exactly ‘PASSW0RD’ with a zero instead of the letter O. I don’t recall when they changed to newer methods but it’s worth a try.
removed by mod
Unfortunately I don’t have any servers to test that anymore and power was never a major concern at the time. Also a different use case, for me I’ve always used IMMs to remotely setup and troubleshoot for servers that I expected to be up 24/7.
You need to start learning about ipmi, try googling ipmitool and the name of your server.
Is it possible to set up WoL on a normal desktop computer?
That varies depending on the computer/motherboard manufacturer and model. The manual may reference that feature but if not can go into BIOS/UEFI setup menu then browse through looking to see if there is any option to enable it. Also I’ve only used it with built-in NICs so not sure if it’s an option with add-on NIC.
Considering it’s an IBM wol will likely only work on the lan1 port or the imm port.
removed by mod
IMM is IBMs out of band management system if you have worked with HP they call it iLO and Dell calls iDRAC. You can get hardware diagnostics from a webpage when the server is powered off but power is still connected. You can also use the page to power on, reboot and shutdown the system. There is even a virtual console so you can see what the video is outputting without a monitor attached.
removed by mod