OPNsense Forum

English Forums => Development and Code Review => Topic started by: swingline on March 20, 2021, 05:04:00 AM

Title: Firewall rules and API?
Post by: swingline on March 20, 2021, 05:04:00 AM
I didn't see anything in API reference so I figured I would ask here.

Is it possible to enable or disable a firewall rule with an API call?
Title: Re: Firewall rules and API?
Post by: franco on March 20, 2021, 01:14:44 PM
Yes, but only rules created from the firewall API plugin pool which are fully API-enabled.


Cheers,
Franco
Title: Re: Firewall rules and API?
Post by: swingline on March 21, 2021, 12:25:51 PM
Perfect this is what I needed.