opensnitch icon indicating copy to clipboard operation
opensnitch copied to clipboard

[Feature Request] import rules from exported rules.csv file

Open freddii opened this issue 5 years ago • 5 comments

It might be handy to be able to import all rules from an exported rules.csv file.

freddii avatar Jan 04 '21 14:01 freddii

csv wouldn't be a proper format, because we'd need a delimiter to separate the fields, and it would be difficult to find one that is not used on the rules.

Why do you need this feature? just to understand the necessity.

gustavo-iniguez-goya avatar Jan 05 '21 00:01 gustavo-iniguez-goya

To be able to take my configs to another linux system on dual boot. Or is there another easy solution to copy the settings over?

freddii avatar Jan 05 '21 06:01 freddii

The easiest way would be to zip /etc/opensnitchd/ and unzip it on the other system.

The configs and rules are reloaded if they're modified on disk, so once the target file is overwritten, the daemon will reload it.

gustavo-iniguez-goya avatar Jan 05 '21 12:01 gustavo-iniguez-goya

Thanks. will try that :)

freddii avatar Jan 05 '21 12:01 freddii

I'll document it on the wiki, so others know it, just in case they need it.

gustavo-iniguez-goya avatar Jan 05 '21 16:01 gustavo-iniguez-goya