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 2382 times)
LHBL2003
Jr. Member
Posts: 76
Karma: 2
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
LHBL2003
Jr. Member
Posts: 76
Karma: 2
Re: Create defined rules in Rules by staff And delete in the night...
«
Reply #1 on:
February 13, 2023, 06:41:10 pm »
Does no one have any ideas for me?
Is it possible to read out the rules via Create, Delete?
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...