OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Create defined rules in Rules by staff And delete in the night...
« previous next »
  • Print
Pages: [1]

Author Topic: Create defined rules in Rules by staff And delete in the night...  (Read 54 times)

LHBL2003

  • Jr. Member
  • **
  • Posts: 71
  • Karma: 0
    • View Profile
Create defined rules in Rules by staff And delete in the night...
« on: February 07, 2023, 07:01:43 pm »
I have set up 100 VLANs / Virtual Interfaces for test environments.
This means I have 100 rules areas in opnsense.

Every now and then, a work colleague needs the internet for a few hours for his VM. So I would like to allow you the internet for the rest of the day.

My idea was:

I wanted to write a C# application, via REST API.
The employee feels out a test environment/rule.
The employee enters a predefined valid IP.
The employee presses OK.
An Any rule is then created for the Internet.

I search once a day with a job for the marked rules and delete them again.

--

Apparently there is no API for rules right?

What mechanisms can I use to realise my idea?

Greetings Denis
« Last Edit: February 07, 2023, 07:16:56 pm by LHBL2003 »
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Create defined rules in Rules by staff And delete in the night...
 

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