Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Firewall rules and API?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Firewall rules and API? (Read 2780 times)
swingline
Newbie
Posts: 36
Karma: 1
Firewall rules and API?
«
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?
Logged
franco
Administrator
Hero Member
Posts: 17660
Karma: 1611
Re: Firewall rules and API?
«
Reply #1 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
Logged
swingline
Newbie
Posts: 36
Karma: 1
Re: Firewall rules and API?
«
Reply #2 on:
March 21, 2021, 12:25:51 pm »
Perfect this is what I needed.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Firewall rules and API?