Closed Vaibhav1587 closed 6 years ago
Yes, notice this part of the error message - I've added some line breaks to make reading it easier:-
"ERROR":"20171220Z192858 :: function not defined as valid in function calls reference file",
"DATA":{
"function":"easyrule_block_alias_add",
"function calls reference file":"/etc/fauxapi/pfsense_function_calls.txt"
}
You MUST allow (via uncommenting in the file /etc/fauxapi/pfsense_function_calls.txt
) the function you are trying to access.
I note that there was a typo in the documentation here, the correct location of the pfsense_function_calls.txt
file is /etc/fauxapi/pfsense_function_calls.txt
- documentation has been updated.
Trying to block the host using command line but getting exception, command :
curl -X POST --silent --insecure --header "Content Type: application/json" --header "fauxapi-auth:XXX" http://xx.xxx.xxx.xx:xxxx/fauxapi/v1/\?action=function_call --data '{"function":"easyrule_block_alias_add","host":"xxx.xxx.xxx.xx","$int":"wan"}'
Response :