iptables-config-cli
v1.0.0
Published
Generate iptables/nftables firewall rules from the command line
Maintainers
Readme
iptables-config-cli
Generate iptables/nftables firewall rules from the command line
Installation
npm install -g iptables-config-cliUsage
Initialize configuration
iptables-config init
iptables-config init --template advanced
iptables-config init --output custom-config.jsonValidate configuration
iptables-config validate
iptables-config validate path/to/config.jsonView configuration
iptables-config show
iptables-config show --env production
iptables-config show --jsonModify configuration
iptables-config set settings.debug true
iptables-config set settings.logLevel \"warn\"Compare configurations
iptables-config diff config-dev.json config-prod.jsonList templates
iptables-config templatesTemplates
| Template | Description |
|----------|-------------|
| minimal | Bare minimum configuration |
| standard | Recommended defaults for most projects |
| advanced | Full-featured with security, caching, and multi-environment support |
Why iptables-config-cli?
- Zero dependencies at runtime — just
commanderandchalk - Template-based — start with minimal, standard, or advanced presets
- Validation built-in — catch config errors before deployment
- Environment-aware — manage dev/staging/production configs in one file
- Diff support — compare configs across environments
License
MIT
