Archive > 18.7 Legacy Series
os-wol plugin
mibsy:
Funny, I was playing around with that last night before your message and I didn't get an error, but it wouldn't wake up the machine I was testing it against. Turns out, someone turned that machine off! Anyhow, I tested it today against two other machines that were asleep and the command line works perfectly. The machines wake up, no errors and I can ping them. I'm trying to dig into the scripts and such to see where it gets called from the web interface.
mix:
It seems that the broadcast ip in private function calculateSubnetBroadcast ($ip_addr, $cidr) is incorrectly calculated. In my case, broadcast ip was calculated as -64.168.255.255 for a 16 bit mask. In this situation, of course, it will not be able to work properly.
The error is in line 149 in the WolController.php file:
instead
$int_bcast >> 24,
should be
($int_bcast >> 24) & 255,
fabian:
I created a ticket for this error: https://github.com/opnsense/plugins/issues/1368
Navigation
[0] Message Index
[*] Previous page
Go to full version