Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Enabling firewall rules from command line
« previous
next »
Print
Pages: [
1
]
Author
Topic: Enabling firewall rules from command line (Read 2544 times)
shekles
Newbie
Posts: 1
Karma: 0
Enabling firewall rules from command line
«
on:
November 30, 2021, 06:11:38 pm »
Hey folks,
Is there a way to enable or disable firewall rules from a command line on the router instead of through the web interface?
Use case: I have some firewall rules that activate on a schedule for a window of time. If I don't need them active for the entire duration of that window, I can manually disable the rules to get my original behavior back. However, I have to remember to go re-enable those rules outside the schedule window, which is something I often forget to do. It would be perfect if I could re-enable them from cron when I know it's outside the schedule, for example.
Is this possible?
Logged
3x3cut0r
Newbie
Posts: 32
Karma: 0
Re: Enabling firewall rules from command line
«
Reply #1 on:
October 18, 2022, 11:33:14 am »
Hi,
same question here!
I want to enable/disable a firewall rule with cron. Is this possible?
Logged
OPNsense 23.7 VM <= DrayTek Vigor 165 (vDSL2 35b 250/50)
\/
on Proxmox 8.0
\/
on Minisforum HM90
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Enabling firewall rules from command line