OPNsense
  • 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 2798 times)

swingline

  • Newbie
  • *
  • Posts: 36
  • Karma: 1
    • View Profile
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: 17745
  • Karma: 1620
    • View Profile
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
    • View Profile
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?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2