Command 'juju set-firewall-rule'


juju set-firewall-rule [options] <service-name>, --whitelist <cidr>[,<cidr>...]


Sets a firewall rule.

Global Options:

--debug  (= false)

Equivalent to --show-log --logging-config==DEBUG

-h, --help  (= false)

Show help on a command or other topic.

--logging-config (= "")

Specify log levels for modules

--quiet  (= false)

Show no informational output

--show-log  (= false)

If set, write the log file to stderr

--verbose  (= false)

Show more verbose output

Command Options:

-m, --model (= "")

Model to operate in. Accepts [<controller name>:]<model name>|<model UUID>

--whitelist (= "")

List of subnets to whitelist


Firewall rules control ingress to a well known services within a Juju model. A rule consists of the service name and a whitelist of allowed ingress subnets.

The currently supported services are:



juju set-firewall-rule ssh --whitelist

See also: list-firewall-rules

Last updated 1 year, 1 month ago.