O'Reilly logo

Learning OpenStack Networking (Neutron) by James Denton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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] ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required