OPNsense Forum

English Forums => Intrusion Detection and Prevention => Topic started by: bunchofreeds on July 14, 2019, 10:16:19 am

Title: [SOLVED] Bulk switch rules between Alert or Drop in GUI
Post by: bunchofreeds on July 14, 2019, 10:16:19 am
Is there a way to Bulk Switch Rules between Alert or Drop from within the GUI

I know there is the option under 'Downloads' edit Ruleset, set Filter to 'Drop', however this does not set 'ALL' rules in the selected ruleset to Drop. It only updates a preconfigured set of rules.

Is there a way in the GUI to select multiple rules from a given set of search results, and then select them all to switch from Alert to Drop, or vice versa. Currently this has to be done per rule through editing each rule.
If not can this please be considered as a request for a future update.

Also can you search or list in order rules that either are or are not enabled. This would make the enabling or disabling of rules easier.
When searching for Trojan specific rules for example and enabling/disabling per your requirements, you may receive a list of 28k plus that you cannot easily discern which are enabled or disabled without scrolling through the entire list.

Thanks for any help or advice with regards to this
 
Title: Re: Bulk switch rules between Alert or Drop in GUI
Post by: franco on July 15, 2019, 10:00:35 am
https://github.com/opnsense/changelog/blob/53bed8d3062e797d8aec275bddd6dc88e41c1232/doc/19.7/19.7.r1#L65


Cheers,
Franco
Title: Re: Bulk switch rules between Alert or Drop in GUI
Post by: bunchofreeds on July 15, 2019, 10:20:05 pm
Thanks Franco,

Looking forward to using this in 19.7!

Title: Re: Bulk switch rules between Alert or Drop in GUI
Post by: bunchofreeds on July 18, 2019, 06:07:43 am
OK that is soooo much better in 19.7 for switching between Alert and Drop for multiple selected rules.
night and day easier actually. Thanks for enabling this option OPNsense team.

Would it also be possible in a future update to allow for sorting by 'Enabled' from within the Rules TAB in the far right column? In the same way you can sort by sid, Action, Source etc.
This would allow for easier enabling or disabling of multiple rules by first refining your search, then sorting by enabled.

Selecting multiple rules by selecting the first rule then 'shift' selecting the last or something similar would be cool too :)

Thanks again for the update, its already making my life easier