Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Create Security Group

Web Interface

...

  1. In Web Interface(https://openstack.stfc.ac.uk/auth/login/?next=/ ) go

...

  1. to Network->Security Groups

...

  1. Click CREATE SECURITY GROUP 

Image Removed

...

  1. Image Added
  2. Give it a name and optionally a description and click CREATE SECURITY GROUP 

Image Removed

  1. Image Added
  2. See

...

  1. Security Group Rule Management for how to edit the security group rules.

Command-Line

Run

Emacs
Code Block
theme
openstack security group create [--description <description>] <name>

Example

Emacs
Code Block
theme
$ openstack security group create test-tutor
+-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field           | Value                                                                                                                                                                                                                               |
+-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| created_at      | 2021-12-06T12:29:10Z                                                                                                                                                                                                                |
| description     | test-tutor                                                                                                                                                                                                                          |
| id              | e9c8ffad-2b5c-4a47-9887-9dc0ebffa8b5                                                                                                                                                                                                |
| location        | Munch({'cloud': '', 'region_name': 'RegionOne', 'zone': None, 'project': Munch({'id': '80ab2bd11e5f46bf96bf47658d07499d', 'domain_id': '38372510d9bb4ac7916178b062d387de', 'domain_name': None})}) |
| name            | test-tutor                                                                                                                                                                                                                          |
| project_id      | 80ab2bd11e5f46bf96bf47658d07499d                                                                                                                                                                                                    |
| revision_number | 1                                                                                                                                                                                                                                   |
| rules           | created_at='2021-12-06T12:29:10Z', direction='egress', ethertype='IPv4', id='d23c7234-8f83-4307-84df-519aad87aa8c', updated_at='2021-12-06T12:29:10Z'                                                                               |
|                 | created_at='2021-12-06T12:29:10Z', direction='egress', ethertype='IPv6', id='fc47d981-2368-403b-82bd-9ce6cdd9aa0d', updated_at='2021-12-06T12:29:10Z'                                                                               |
| stateful        | None                                                                                                                                                                                                                                |
| tags            | []                                                                                                                                                                                                                                  |
| updated_at      | 2021-12-06T12:29:10Z                                                                                                                                                                                                                |
+-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Deleting Security Group

Web Interface

  1. In Web Interface Network->Security Groups, select the Security Groups you wish to delete

  2. Select the security groups that you wish to delete and click DELETE SECURITY GROUPS

    Image Added
  3. Confirm by clicking DELETE SECURITY GROUPS 

    Image Added

Command-Line

Find the security group ID with openstack server list 

Code Block
$ openstack security group list
+--------------------------------------+---------------------+----------------------------------------------+----------------------------------+------+
| ID                                   | Name                | Description                                  | Project                          | Tags |
+--------------------------------------+---------------------+----------------------------------------------+----------------------------------+------+
| d20fd393-8193-4068-a181-cf4861f112f7 | 1-group-to-delete   |                                              | 80ab2bd11e5f46bf96bf47658d07499d | []   |
+--------------------------------------+---------------------+----------------------------------------------+----------------------------------+------+

Run

Code Block
openstack security group delete <security-group-id>

Example

Code Block
$ openstack security group delete d20fd393-8193-4068-a181-cf4861f112f7