I wrote a simple shell tool to interactively edit the current nftables ruleset using a terminal-based text editor (respecting environment variable EDITOR and defaulting to vim).
For testing purposes, it can optionally revert the changes after a timeout specified in seconds (option --timeout SECONDS, requires systemd-run).
See the script in action:
The script can be downloaded and used under the terms and conditions of the MIT license.
Gitea project nft-edit-rulesetLast 3 commits: by tilman: fa7f799f clarify mutually exclusive options in synopsis syntax by Tilman Kranz: d713953c Add LICENSE by Tilman Kranz: 5834235d more consistent behavior of --config and --timeoutThis project has currently no releases.