OPNsense Forum

English Forums => General Discussion => Topic started by: talespin on October 21, 2025, 08:53:44 AM

Title: Wale on LAN from command
Post by: talespin on October 21, 2025, 08:53:44 AM
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?

Title: Re: Wale on LAN from command
Post by: meyergru on October 21, 2025, 09:44:51 AM
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.

Title: Re: Wale on LAN from command
Post by: talespin on October 21, 2025, 10:23:35 AM
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>