gustavo-iniguez-goya / opensnitch

OpenSnitch is a GNU/Linux application firewall
GNU General Public License v3.0
395 stars 20 forks source link

Extremely Long Filenames #37

Closed metal450 closed 4 years ago

metal450 commented 4 years ago

By default, when creating its rules, opensnitch generates some extremely long filenames. As I include its rule folders in my backups, the backup software often fails to upload these files due to the long names, so I find myself having to go in & keep manually renaming the long ones one at a time. Suggestion: please consider a maximum filename length for the autogenerated rule names (either by default or optional) to avoid the need to repeatedly shorten them by hand to keep backup software working :)

gustavo-iniguez-goya commented 4 years ago

allow-list-type-regexp-operand-desthost-data-eees-type-simple-operand-destport-data-53-type-simple-operand-userid-data-1000-type-simple-operand-processcommand-data-ping-eees

Nah, I don't think they're that long.. :laughing:

We could get rid of the rule's operator data, which is what makes the name so long. If there's a rule with the same name, it's renamed to rule-name-1, rule-name-2, etc. so they could be shorter, and if 2 rules exist with the same name you can always rename it later with the rules editor.

The above rule name would be shorten to something like:

allow-list-type-regexp-operand-desthost-data-eees-type-simple-operand-destport-data-53-type-simple-operand-userid-data-1000-type-simple-operand-processcommand-data-ping-eees

allow-30s-ping-eeess-53-1000-list

metal450 commented 4 years ago

Perfect :)