Working with security groups

Security groups can be managed in either the Neutron CLI or the Horizon dashboard. Both offer a pretty complete experience and are broken down in the following sections.

Managing security groups in the CLI

From within the Neutron command-line client, a number of commands can be used to manage security groups, such as:

  • security-group-create
  • security-group-delete
  • security-group-list
  • security-group-rule-create
  • security-group-rule-delete
  • security-group-rule-list
  • security-group-rule-show
  • security-group-show
  • security-group-update

Creating security groups in the CLI

To create a security group within the CLI, use the Neutron security-group-create command as follows:

Syntax: security-group-create [--tenant-id TENANT_ID]
[--description DESCRIPTION] ...

Get Learning OpenStack Networking (Neutron) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.