Hello,
running opnsense 26.1.11
My ISP is a bit flaky and every few few days I lose connection which resolves by renewing the dhcp-lease.
Previously I have opened browser, gone to web UI, Interfaces->Overview and Reload on WAN, however I would like this to be less steps and just call it though the API.
I have made a new user for this with an apikey and minimal permissions (Interface: Settings, Interface: WAN (these already are way too wide)), but just get 403 Forbidden:
> curl -u 'key':'secret' -X POST https://myrouter/api/interfaces/overview/reload_interface/wan
{"status":403,"message":"Forbidden"}
Is there a way to see what permissions is required, perhaps a way to allow only that endpoint?
On the whole it seems to me that the permissions are quite lacking in granularity (would expect ability to filter by every endpoint and arguments) and opaque/poorly documented.