2
0
Interactively edit the current nftables ruleset.
Go to file
2021-11-24 02:13:45 +01:00
Makefile add installation procedure 2021-11-21 04:42:15 +01:00
nft-edit-ruleset cleanup of help, info and error messages 2021-11-24 02:13:45 +01:00
README.md add option "--config [CONFIG_FILE]" 2021-11-24 01:57:30 +01:00

Usage

nft-edit-ruleset [--config [CONFIG_FILE]] [--fail] [--timeout SECONDS] [--yes]

Description

Interactively edit the current nftables ruleset using the editor specified by environment variable EDITOR (defaulting to vim). Optionally, revert changes after a timeout given in seconds.

Options

  • -c, --config [CONFIG_FILE]: On successfully applying the changes, save ruleset to CONFIG_FILE (default: /etc/nftables.conf).
  • -f, --fail: Exit unsuccessfully if changes fail to apply.
  • -h, --help: Display this message and exit.
  • -t NUM, --timeout NUM: Revert changes after NUM seconds.
  • -y, --yes: No confirmation before applying changes.

Exit Codes

  • 0: Success: No changes to apply or changes applied successfully.
  • 1: Error: Usage error or failed or aborted changes.

Author and License