evilsocket / opensnitch

OpenSnitch is a GNU/Linux interactive application firewall inspired by Little Snitch.
GNU General Public License v3.0
10.97k stars 512 forks source link

[Feature Request] Add "ADD RULE" button in Allow/Deny connection dialog #1101

Open liwodg opened 8 months ago

liwodg commented 8 months ago

Thank you for the great program!

I think it would be nice to have a new "Add rule" (or "Edit rule") button in Allow/Deny connection dialog. It could open an existing Rule editing dialog with all pre-filled fields for this connection. These fields could be disabled (checkboxes off) by default but when enabled the values from the current connection atempt would appear. It would make easier to add a permanent rule with all needed options. For example, at the moment if I add a new rule by pressing Allow/Deny I need to edit it anyway to change its name and add more options (the number of options added to the rule in Connection dialog is limited).

Maybe this "Add rule" button could even replace the existing Combobox and advanced options (like destination op, dst port etc.) and therefore simplify Allow/Deny connection dialog. So that it would be two options - add a rule using "Add rule" button with all needed options (which can be easily enabled/disabled by a user with existing checkboxes) or quickly enable/deny current connection atempt with a limited number of options (e.g. only executable and command line).

Also there are two Allow buttons in the Connection dialog - one as an option in Combobox and another as a separate button. It may be a little bit confusing about whether there is any difference between them. Maybe one of them could be removed. If there will be only three options available (allow, deny, reject) than I think it may be more convenient to have them as three separate buttons.