Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Create Security Group

Web Interface

1. In Web Interface(https://openstack.stfc.ac.uk/) go to Network->Security Groups
2.

Click CREATE SECURITY GROUP 

3.

Give it a name and optionally a description and click CREATE SECURITY GROUP 

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

Command-Line

Run

openstack security group create [--description <description>] <name>

Example

$ 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

3.

Confirm by clicking DELETE SECURITY GROUPS 

Command-Line

Find the security group ID with openstack server list 

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

Run

openstack security group delete <security-group-id>

Example

$ openstack security group delete d20fd393-8193-4068-a181-cf4861f112f7
  • No labels