OPNsense Forum

English Forums => General Discussion => Topic started by: bigbrother on September 10, 2020, 11:20:20 AM

Title: activate firewall rule based on backend service avilability
Post by: bigbrother on September 10, 2020, 11:20:20 AM
Hi

I want to build a logic to build a firewall rule based on the server availability.
If the server is alive the rule should be in place. If the server goes down
the rule should be removed.

I don't know if there is a possibliity to create/remove a firewall or Nat rule via API call?

Thx bb