evilsocket / opensnitch

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

[Feature Request] Importing of exporteted csv rules #746

Closed Nonie689 closed 2 years ago

Nonie689 commented 2 years ago

Importing of exporteted csv rules that I have outputed would be a nice thing.via

via menu and via command line tool....

gustavo-iniguez-goya commented 2 years ago

ok :+1: it was requested some time ago here #324 Closing as duplicated.

Boruch-Baum commented 1 year ago

Please consider re-opening this, because the current situation is deceptive, in that the current opensnitch GUI prominently offers a 'rules-save' option in csv format, which leads the user to believe that there will elsewhere be a parallel 'rules-load' option. However, the guidance in #324 is that the only way to perform a save/load is to manually transfer the contents of /etc/opensnitchd.

In the current design, what is the purpose of having the csv-formatted save at all?

Maybe the 'rules-save' button on the menu bar could perform a tar.gz of the /etc/opensnitchd, and there could be elsewhere a parallel option?

gustavo-iniguez-goya commented 1 year ago

I'll work on this feature in the following days/weeks @Boruch-Baum :+1:

Boruch-Baum commented 1 year ago

Thanks. Alternatively, you could just remove the csv-export button from the menu bar and either continue with the guidance how to manually work with the data, or automate tar-gz operations with the GUI.

I think that it's a positive to somewhere let users know where the raw rule data is located and that the raw data can be directly edited as text (at user's risk).

The main advantage I see in the csv export/import is that it produces a complete rules-set in a single file, which for many use-cases will be easier to compare, analyse, and edit in a user's preferred program (eg. emacs, spreadsheet).

On 2022-12-14 02:51, Gustavo Iñiguez Goia wrote:

I'll work on this feature in the following days/weeks @.*** 👍

— Reply to this email directly, [2]view it on GitHub, or [3]unsubscribe. You are receiving this because you were mentioned. Message ID: @.***>

References

  1. https://github.com/Boruch-Baum
  2. https://github.com/evilsocket/opensnitch/issues/746#issuecomment-1350904998
  3. https://github.com/notifications/unsubscribe-auth/AAOE3KDTFCIOAHTR4RM3KBDWNGREJANCNFSM6AAAAAAQWMTLGA

-- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0