3 ms·
So asking a real question not being sarcastic and having only dabbled with OpenBSD's pf, what is the use for this? The examples seem to point to using it for ba
by gh02t 1y ago
So asking a real question not being sarcastic and having only dabbled with OpenBSD's pf, what is the use for this? The examples seem to point to using it for backups, but what does json give you versus just backing up the file directly? Is it to make manipulating pf config files programmatically easier?
- intothemild 1y agoNo. You're not being sarcastic here. PFs config files can't really be any more complicated or easier in json than in its native form. So, other than validation or something... Which, if you are already parsing the file into json and back again... Means you already can parse pf.conf files, and just do validation directly there. So if it's just backing up, then yeah why add the extra step of converting the file before backing it up
- hnlmorg 1y agoI assumed it was to make it easier working with the files programmatically. Eg using jq or one of the many many other solutions for JSON in shell scripts.