Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
23.7 Legacy Series
»
Is it possible to enable firewall rules via the command line / cron?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Is it possible to enable firewall rules via the command line / cron? (Read 392 times)
bitTwiddler
Newbie
Posts: 27
Karma: 0
Is it possible to enable firewall rules via the command line / cron?
«
on:
June 10, 2024, 08:51:51 pm »
I frequently disable a rule for testing and then forget to re-enable it.
It would be very nice to be able to have a cron job run nightly to re-enable all the rules for those times that I forget to do so. However, I am not seeing that ability in the docs.
Am I overlooking the obvious?
Skye
Logged
bitTwiddler
Newbie
Posts: 27
Karma: 0
Re: Is it possible to enable firewall rules via the command line / cron?
«
Reply #1 on:
July 04, 2024, 12:45:24 am »
Maybe a better question, is there an API endpoint which allows rules to be enabled?
I am looking at
these docs
and it is unclear if this works on the built-in firewall rules based upon this statement:
Although the plugin does contains a basic user interface (in Firewall ‣ Automation), it’s mirely intended as a reference and testbed. There’s no relation to any of the rules being managed via the core system.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
23.7 Legacy Series
»
Is it possible to enable firewall rules via the command line / cron?