WoL through Wireguard

Tiritibambix@lemmy.ml to Selfhosted@lemmy.world – 21 points –

Hello.

I was willing to post this in the home network community, but it is not active at all... So I hope this is the right place, as I use a self hosted wireguard and pihole.

I'm just a hobbyist whose first language is not English, so please, bare with me :)

So I use Wireguard Easy to create a tunnel to my home network to use pihole on my phone and access my services from outside.

I have an app to wake my home computer on LAN that is working fine when I'm home. I'd like to be able to wake it from outside and I don't know how.

A few things are bugging me. If I'm connected to my home network, shouldn't I be able to WoL my computer as long as I use my tunnel ?

And, on some occasions, I was able to WoL my PC when I wasn't home (I remember doing it once when I was visiting my parents).

Can someone ELI5 this please ?

Thanks for your help :)

14

You are viewing a single comment

You understood correctly.

I have a RPi running Wireguard, and a PC.

How would you use the RPi to wake the PC ? What is your method ?

My RPi runs Debian and docker.

You can use the command ‘wakeonlan x’ where x is your MAC address of the pc you are trying to wake.

I use WireGuard on a pi and then use wakeonlan from my phone to start my pc.

I use the “wakeonlan” package. Simply install it, ssh to your server, and run “wakeonlan xx:xx:xx:xx:xx:xx”, where “xx:xx:xx:xx:xx:xx” is the Mac-adres of the PC you’re trying to wake.

2 more...