CLI tool to manage FortressWAF instances.
go install github.com/FortressWAF/fortressctl@latestOr build from source:
git clone https://github.com/FortressWAF/fortressctl.git
cd fortressctl
go build -o fortressctl .By default fortressctl connects to 127.0.0.1:8444. Create ~/.fortressctl.yaml:
host: 192.168.1.100
port: 8444
api_key: your-admin-api-keyAll flags can override config values:
fortressctl --host 10.0.0.5 --port 8444 --api-key "sk-xxx" status| Command | Description |
|---|---|
status |
Show server status (version, uptime, requests, connections) |
health |
Check health endpoint |
reload |
Trigger configuration reload |
rules |
List WAF rules |
rules get <id> |
Show rule details |
sites |
List configured sites |
config |
Show config summary |
# Check server is alive
fortressctl health
# View stats
fortressctl status
# Reload config after changes
fortressctl reload
# List all rules
fortressctl rules
# Get specific rule
fortressctl rules get SQLI001
# List sites
fortressctl sitesTalks to the FortressWAF admin API at /api/v1/status, /api/v1/reload, /api/v1/rules, /api/v1/sites, /api/v1/config, and /health.
Auth is Authorization: Bearer <api-key> matching the FortressWAF admin API keys.
MIT