I need to set and change firewall rules with API calls, I know IC2 API endpoints support this but I need direct firmware API endpoint. There is nothing about firewalls in the version 8.1.1 documentation (Peplink-Router-API-Documentation-for-Firmware-8.1.1.pdf)
There is no official documentation for this - @Giedrius possible to share this?
If not for IC2, then for local API.
Understand this might be a security risk for IC2, but local API would be good.
I am not sure how it might be a security risk, IC2 API already has endpoints for this, for example IC2 docs.
Firmware API endpoints are protected with the client id and secret key, if someone has the secret key and has access to the local LAN to make the api call, I assume they can do much more than changing firewall settings! basically they are already behind the firewall!!
Reason I need this is to dynamically change firewall settings based on available WAN gateways. For example when router is only connected via the cellular we like to block all outgoing traffic, but when ethernet WAN is connected we like to remove the rules and allow the outgoing traffic. Plus we need to integrate these controls into our dashboard so our clients be able to change firewall setting from our system not through IC2 or web admin of the router.