FiaRua wrote: ↑Sat Apr 07, 2018 11:50 pm
I want to be able to remotely wake my home desktop on the go, without having to make my home network public. I was thinking of using a RPi as an always on 'insider' that can send a magic packet to my desktop to wake it. I have connected to my RPi via VPN (ZeroTier) via my phone and i use an ssh client to input commands (JuiceSSH) but realized the wakeonlan command would not work as it uses the physical mac address of my destop. How would i go about making this work?
Are there simpler methods waking my desktop (perhaps without a VPN?)
I have very little knowledge of networking and have been learning as i go trying to make this work. If you could go into a bit more detail so I could follow I would greatly appreciate it. Thank you for reading.
You're not going to be able to do this without some way into your network. The trick is doing so securely.
The usual too for sending WOL magic packets seems to be etherwake.
Seeing as you already have VPN and ssh access setup I'd go that route.
Install etherwake:
Find the MAC address of your PC's LAN card (note: must be a wired connection, WOL does not work over wifi). For example 00:11:22:33:44:55
Find the name of the interface your Pi uses to connect to your LAN. For example eth0
To wake your PC ssh into your Pi and run
Code: Select all
etherrwake -i eth0 00:11:22:33:44:55
"-i" tells etherwake to use the specified interface to send the magic packet (see
man etherwake)
Incidentally, don't skimp on setting up the security on your network. Having looked at ZeroTier's documentaion it looks like it's more for outgoing connections and peer to peer rather than secure incoming ones. That said, I'm not a network admin so may well be wrong.
You miht want to consider setting up your own OpenVPN server instead.
Arguing with strangers on the internet since 1993.