this post was submitted on 18 Jun 2023
9 points (100.0% liked)

nixos

1245 readers
2 users here now

All about NixOS - https://nixos.org/

founded 4 years ago
 

Honestly I don't know why I made this, it clearly isn't worth it lol (Jesus, 5000kloc for this), but it was interesting to learn more about nftables (I also found a bug in Nix in the process). I will contribute to nftables docs some time later, as I found many undocumented or poorly documented parts, and some documentation that's flat out wrong.

Currently this can only export rules in json, but it shouldn't be too hard to write a transpiler into the nftables language.

you are viewing a single comment's thread
view the rest of the comments
[–] rycee 2 points 1 year ago

Very impressive work! Quite a bit more powerful than I need but I can imagine it being very useful for somebody doing an advanced setup.