Create Security Group
Web Interface
...
In Web Interface(https://openstack.stfc.ac.uk/auth/login/?next=/ ) go
...
to
Network->Security Groups
...
Click
CREATE SECURITY GROUP
Give it a name and optionally a description and click
CREATE SECURITY GROUP
...
...
See Security Group Rule Management for how to edit the security group rules.
Command-Line
Run
Code Block | ||
---|---|---|
| ||
openstack security group create [--description <description>] <name> |
Example
Code Block | theme | Emacs
---|
$ 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
...
In Web Interface
Network->Security Groups
, select the Security Groups you wish to delete
...
Select the security groups that you wish to delete and click
DELETE SECURITY GROUPS
Confirm by clicking
DELETE SECURITY GROUPS
...
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 | theme | Emacs
---|
$ openstack security group delete d20fd393-8193-4068-a181-cf4861f112f7 |
...