Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
os-wol plugin
« previous
next »
Print
Pages: [
1
]
Author
Topic: os-wol plugin (Read 23679 times)
mkaluza
Newbie
Posts: 2
Karma: 0
os-wol plugin
«
on:
December 14, 2018, 01:06:23 am »
Hello, where can I find the os-wol plugin LOGs? If I send the wol packet to the LAN interface, I get this message:
"The packet was not sent due to an error. Please consult the logs."
If I send the wol packet to a WAN interface, it will normally be sent....
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: os-wol plugin
«
Reply #1 on:
December 14, 2018, 06:14:17 pm »
Since the plugin has no logfile -> syslog
Logged
mkaluza
Newbie
Posts: 2
Karma: 0
Re: os-wol plugin
«
Reply #2 on:
December 15, 2018, 01:44:39 am »
I do not have any syslog server, so far I have noticed in System -> Log Files -> Backend the following records appear after the packet is sent:
configd.py: [323c54e2-7c34-45c2-a9a5-a037e7abf9cf] returned exit status 1
configd.py: [f3e2dd75-b119-4707-b016-baa21779d668] returned exit status 1
configd.py: [7f8bba51-4eb3-4b9e-980e-1e74d6a150a0] returned exit status 1
configd.py: [95880cd0-1ce8-4d84-84b7-7a447c14862c] returned exit status 1
configd.py: [f5a7ea2b-effect5-4149-a580-bda7fb350b95] returned exit status 1
Do you have any idea what can I do to wol service working on the LAN interface?
Logged
mibsy
Newbie
Posts: 8
Karma: 0
Re: os-wol plugin
«
Reply #3 on:
January 26, 2019, 10:10:09 pm »
I'm having the exact same issue with the same error. Did you ever identify the cause or solution? My guess is the plugin needs updating due to a change in the base OPNsense code, but I am pulling that out of the air. I have my configured only on my LAN interface, I've uninstalled and reinstalled the WoL plugin, and the LAN net doesn't have anything special that I can think of (it's not a VLAN, no bridging, no odd filtering, etc.
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: os-wol plugin
«
Reply #4 on:
January 26, 2019, 11:07:24 pm »
can you run /usr/local/bin/wol -i BROADCAST_IP MAC from your command line? It may return an error.
Logged
mibsy
Newbie
Posts: 8
Karma: 0
Re: os-wol plugin
«
Reply #5 on:
January 28, 2019, 04:26:37 am »
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.
Logged
mix
Newbie
Posts: 4
Karma: 1
Re: os-wol plugin
«
Reply #6 on:
June 14, 2019, 10:49:55 pm »
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,
«
Last Edit: June 15, 2019, 12:41:20 pm by mix
»
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: os-wol plugin
«
Reply #7 on:
June 14, 2019, 10:54:07 pm »
I created a ticket for this error:
https://github.com/opnsense/plugins/issues/1368
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
os-wol plugin