DOCS / CLI REFERENCE

cluck fence

Manages firewall rules for the coop.

Synopsis

cluck fence <list/allow/deny/lock>

Description

Manages firewall rules for the coop. cluck fence lock closes all inbound traffic, pending investigation.

Options

FlagDescription
--from CIDRSource range
--port PDestination port
--expires TAutomatically 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

0Success. A quiet cluck.
1The command ran but reported a problem, such as a failing check.
2Bad usage: a flag was missing or invalid.
3Authentication or permission error. See HEN-2001.

Used in guides

Common errors

Related commands