Wale on LAN from command

Started by talespin, October 21, 2025, 08:53:44 AM

Previous topic - Next topic
October 21, 2025, 08:53:44 AM Last Edit: October 21, 2025, 08:55:26 AM by talespin
Hi Everyone,

I have setup wol plugin under services to wake up proxmox machine. I am able to wake up system using opnsense GUI Services > "Wake on LAN" without any issue.

I want to automate system startup, whenever router starts it should turn on the server.

My Setup:
//Create file at /usr/local/etc/rc.syshook.d/start
File Name - 99-wolproxmox

content of file :
/usr/local/bin/wol -i <IP address of target system> <mac address>
/usr/local/bin/wol -i <IP address of target system> -m <mac address>

I have tried to login to opnsense shell and issue commands from there but it doesn't work. When I issue above commands it says on screen
Waking up x:x:x:x:x:x...(removed mac address) but nothing happens.

Any suggestion how to make this command work?


Note that the specific system is off and actually has no IP at that time, so it cannot react to a directed request with an IP.

AFAIK, when you use "-i", you are denoting a specific (OpnSense) interface instead of using "255.255.255.255", which in turn should use all WOL-capable interfaces at once. Thus, you should not use a target system IP address, but the broadcast address of the specific interface, like "-i 192.168.1.255", or no "-i" at all.

Intel N100, 4* I226-V, 2* 82559, 16 GByte, 500 GByte NVME, ZTE F6005

1100 down / 800 up, Bufferbloat A+

Quote from: meyergru on October 21, 2025, 09:44:51 AMNote that the specific system is off and actually has no IP at that time, so it cannot react to a directed request with an IP.

AFAIK, when you use "-i", you are denoting a specific (OpnSense) interface instead of using "255.255.255.255", which in turn should use all WOL-capable interfaces at once. Thus, you should not use a target system IP address, but the broadcast address of the specific interface, like "-i 192.168.1.255", or no "-i" at all.



Thanks a Ton,

It works :)

So this can help others
This is the command used from OPNSense (install os-wol plugin)

/usr/local/bin/wol -i 192.168.1.255 <MAC address>