Enable/Disable Port Forwarding rule through API

Started by pickone, May 28, 2025, 03:31:58 PM

Previous topic - Next topic
Hi!

Anyone knows how to do this in the latest OPNsense version?
I have tried so many things but none worked...

First of all, I need to get the uuid of that port forwarding rule, which I don't know how to get it. I found something in two places, but both were different...
Then, trying with togglerule or toggle_rule, with both of the uuid's found, stil not working.

Any idea?

Thanks!