Command 'set-firewall-rule'

See also: firewall-rules


Sets a firewall rule.


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


Flag Default Usage
--allowlist list of subnets to allowlist
--m, --model Model to operate in. Accepts [<controller name>:]<model name>|<model UUID>


juju set-firewall-rule ssh --allowlist


Firewall rules control ingress to a well known services within a Juju model. A rule consists of the service name and a allowlist of allowed ingress subnets. The currently supported services are:

  • ssh
  • juju-application-offer

DEPRECATION WARNING: Firewall rules have been moved to model-config settings “ssh-allow” and “saas-ingress-allow”. This command is deprecated in favour of reading/writing directly to these settings.

Last updated 1 year, 1 month ago. Help improve this document in the forum.