Synopsis
cluck fence <list/allow/deny/lock>
Description
Manages firewall rules for the coop. cluck fence lock closes all inbound traffic, pending investigation.
Options
| Flag | Description |
|---|---|
--from CIDR | Source range |
--port P | Destination port |
--expires T | Automatically remove a rule after a time |
All commands also accept the global flags --coop, --json, --quiet, and --no-color, plus --help, which prints this page in a smaller font.
Example
$ cluck fence allow --from 203.0.113.0/24 --port 443
✔ Rule fr_91c added (expires never)
Exit codes
| 0 | Success. A quiet cluck. |
|---|---|
| 1 | The command ran but reported a problem, such as a failing check. |
| 2 | Bad usage: a flag was missing or invalid. |
| 3 | Authentication or permission error. See HEN-2001. |