You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add net 0.0.0.0: gateway X.X.X.Y fib 0: Invalid argument
It only works If I set back existing WAN
Additional context
I am using OPNsense-25.1 in a Proxmox cluster, but every time the VM is moved to another node within the cluster, its WAN GW needs to be changed.
Wondering if WAN gateway could be changed with configctl?
I also added all the gateways as WANS (System: Gateways: Configuration) in the hope that dpinger automatically detects when the VM is down and uses the working gateway. However, I noticed that for it to work, I need to flush the states or do pfctl -F state.
Not sure if it is a bug in the API, but still can't find how via cli/ssh/api change the WAN IP. any ideas?
Environment
OPNsense 25.1.2-amd64 in proxmox VM
FreeBSD 14.2-RELEASE-p2
OpenSSL 3.0.16
The text was updated successfully, but these errors were encountered:
Thank you for creating an issue.
Since the ticket doesn't seem to be using one of our templates, we're marking this issue as low priority until further notice.
Describe the bug
Can't change the WAN Gateway using the API.
In my attempts to automate this process, I tried this without success:
First, obtain current settings and save them into a file:
I edited the file and updated the gateway field, later submitted data with:
It returns
{"result":"saved"}
If I use the endpoint
setGateway
, for example:I get:
{"errorMessage":"Endpoint not found"}
Then I tried to reconfigure with:
Returned
{"status":"ok"}
but nothing changed.To Reproduce
Genetare user/key to use the API then get the current settings:
edit the gateway on the JSON and submit with:
Then try to reconfigure:
Expected behavior
That the gateway is changed
Describe alternatives you considered
I also tried via SSH using:
And then
But it returns:
It only works If I set back existing WAN
Additional context
I am using OPNsense-25.1 in a Proxmox cluster, but every time the VM is moved to another node within the cluster, its WAN GW needs to be changed.
Wondering if WAN gateway could be changed with
configctl
?I also added all the gateways as WANS (System: Gateways: Configuration) in the hope that dpinger automatically detects when the VM is down and uses the working gateway. However, I noticed that for it to work, I need to flush the states or do
pfctl -F state
.Not sure if it is a bug in the API, but still can't find how via cli/ssh/api change the WAN IP. any ideas?
Environment
OPNsense 25.1.2-amd64 in proxmox VM
FreeBSD 14.2-RELEASE-p2
OpenSSL 3.0.16
The text was updated successfully, but these errors were encountered: