AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Feature Request: Wake on Lan

Open NicLogix opened this issue 4 years ago • 7 comments

I would like the ability with DHCP to Wake on Lan with "magic packet", as the mac address is already listed when using Adguard Home as DHCP Server for network.

NicLogix avatar Mar 28 '21 20:03 NicLogix

Uh, never heard of anything like that. Could you please provide some examples? Maybe some other software already has a similar feature?

ameshkov avatar Mar 30 '21 21:03 ameshkov

For example many webinterfaces of routers have a button next to recently connected devices to wake them up¹; there is also the CLI-tool wol and the GUI-Tool gwakeonlan and I remember using a few Android/iOS Apps that allow you to send WoL-Magicpackets …for history and more on WoL see: https://en.wikipedia.org/wiki/Wake-on-LAN

It works like this: you send a special packet (that is literally called "magic packet") to the MAC-address of the machine you want to wakeup, the NIC receives it and wakes the machine.

¹: Usually it only works with machines in standby-states, but some manufacturers also have capabilities for remote-booting via WoL (yes really. you send a special packet to the MAC-address and then it cold boots :exploding_head: )


How exactly @NicLogix wants this integrated into AGH is also unclear to me :D

HorayNarea avatar Mar 31 '21 01:03 HorayNarea

As stated by HorayNarea, Wake on Lan is able to boot or bring pc out of suspend. The "magic packet" is the most popular way of doing it. This packet is sent on the broadcast address (ex. Subnet 192.168.0.0, sent on 192.168.0.255) on port 9. It is a L2 - L3 routing protocol, so needs an ARP binding (Mac to IP). This is usually done on the router. The info to send the packet is already in Adguard when you set an IP reservation via Mac. I do not know enough code to explain how to implement this, but a separate page in the Web UI which can list the Adguard client, and send the packet would be full marks. A backend like etherwake might do the trick.

I only have Linux Debian PC's, but the concept is the same for Windoze.

NicLogix avatar Mar 31 '21 17:03 NicLogix

Seems a little bit out of scope for us, but I'll mark it as feature request and we'll see if there are more people requesting it.

ameshkov avatar Apr 15 '21 09:04 ameshkov

Maybe it can be easily add with this work ? https://github.com/sabhiram/go-wol I use it but a "All-in-one" interface through the DHCP of AdGuard should be better

samsam-rolon avatar May 07 '21 23:05 samsam-rolon

This WOL feature would be great, especially if additionnaly exposed in api /control server

nerocide avatar Jun 10 '24 16:06 nerocide

this would be a fantastic feature, more one vote for this!

levi2m avatar Aug 04 '24 05:08 levi2m