I am struggling to get the function_call for WakeOnLan to work with FauxAPI.
I'm able to use the exec_command and wake that way, but that gives the API user too much access that I do not want. This works and sends a WOL packet fine:
This below function_call using the WakeOnLan function does not work, though everything appears that it should work.
fauxapi --host pfsense --apikey **** --apisecret ***** function_call "{\"function\": \"WakeOnLan\", \"args\": [\"192.168.20.255\", \"78:5d:c8:ee:ff:aa\"]}"
The FauxAPI logs even show that it processed the command and sends a magic packet, but I don't see it actually sending a magic packet.
I am struggling to get the function_call for WakeOnLan to work with FauxAPI.
I'm able to use the exec_command and wake that way, but that gives the API user too much access that I do not want. This works and sends a WOL packet fine:
fauxapi --host pfsense --apikey **** --apisecret ***** function_call "{\"function\": \"exec_command\", \"args\": \"wake igb1.20 78:5d:c8:ee:ff:aa\"}"
This below function_call using the WakeOnLan function does not work, though everything appears that it should work.
fauxapi --host pfsense --apikey **** --apisecret ***** function_call "{\"function\": \"WakeOnLan\", \"args\": [\"192.168.20.255\", \"78:5d:c8:ee:ff:aa\"]}"
The FauxAPI logs even show that it processed the command and sends a magic packet, but I don't see it actually sending a magic packet.
Any ideas?