Skip to content

FortressCommunity/fortressctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fortressctl

CLI tool to manage FortressWAF instances.

Installation

go install github.com/FortressWAF/fortressctl@latest

Or build from source:

git clone https://github.com/FortressWAF/fortressctl.git
cd fortressctl
go build -o fortressctl .

Configuration

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-key

All flags can override config values:

fortressctl --host 10.0.0.5 --port 8444 --api-key "sk-xxx" status

Commands

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

Examples

# 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 sites

API

Talks 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.

License

MIT

About

CLI tool for managing FortressWAF instances

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages