1
18.7 Legacy Series / Firewall API use
« on: October 30, 2018, 09:31:47 pm »
First simple test:
I have assembled the URL to test the Firewall API as follows.
https://192.168.11.1/api/firewall/aliasutil/aliases
{"message":"controller OPNsense\\Firewall\\Api\\AliasutilController not found","status":400}
In the path: /usr/local/opnsense/mvc/app/controllers/OPNsense/Firewall/Api
I copied the following file
cp AliasUtilController.php AliasutilController.php
Please pay attention to upper/lower case here
After that it worked and I got back a list of all defined aliases.
Did I do something wrong?
or does it have to be corrected ?
Which call can be used to reload an "alias" ?
I have assembled the URL to test the Firewall API as follows.
https://192.168.11.1/api/firewall/aliasutil/aliases
{"message":"controller OPNsense\\Firewall\\Api\\AliasutilController not found","status":400}
In the path: /usr/local/opnsense/mvc/app/controllers/OPNsense/Firewall/Api
I copied the following file
cp AliasUtilController.php AliasutilController.php
Please pay attention to upper/lower case here
After that it worked and I got back a list of all defined aliases.
Did I do something wrong?
or does it have to be corrected ?
Which call can be used to reload an "alias" ?