Openstack-Yoga版本安装-11-创建安全组

Openstack Yoga版本SecurityGroup配置

[root@node-1 ~]# openstack security group rule create --proto icmp default
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| created_at | 2022-03-02T04:03:30Z |
| description | |
| direction | ingress |
| ether_type | IPv4 |
| id | 144426cb-b21b-48f9-8d90-60f7d43297a7 |
| name | None |
| port_range_max | None |
| port_range_min | None |
| project_id | 9ddd4836df1c45f9bb41d78b97e27a24 |
| protocol | icmp |
| remote_group_id | None |
| remote_ip_prefix | 0.0.0.0/0 |
| revision_number | 0 |
| security_group_id | 5e7630ae-a637-4355-a08b-88cf4568310e |
| tags | [] |
| updated_at | 2022-03-02T04:03:30Z |
+-------------------+--------------------------------------+
[root@node-1 ~]# openstack security group rule create --proto tcp --dst-port 22 default
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| created_at | 2022-03-02T04:03:59Z |
| description | |
| direction | ingress |
| ether_type | IPv4 |
| id | 0fe0f7bf-8f6b-4105-8069-b8897ddfd2e1 |
| name | None |
| port_range_max | 22 |
| port_range_min | 22 |
| project_id | 9ddd4836df1c45f9bb41d78b97e27a24 |
| protocol | tcp |
| remote_group_id | None |
| remote_ip_prefix | 0.0.0.0/0 |
| revision_number | 0 |
| security_group_id | 5e7630ae-a637-4355-a08b-88cf4568310e |
| tags | [] |
| updated_at | 2022-03-02T04:03:59Z |
+-------------------+--------------------------------------+
[root@node-1 ~]# openstack security group rule list
+--------------------------------------+-------------+-----------+-----------+------------+--------------------------------------+--------------------------------------+
| ID | IP Protocol | Ethertype | IP Range | Port Range | Remote Security Group | Security Group |
+--------------------------------------+-------------+-----------+-----------+------------+--------------------------------------+--------------------------------------+
| 0fe0f7bf-8f6b-4105-8069-b8897ddfd2e1 | tcp | IPv4 | 0.0.0.0/0 | 22:22 | None | 5e7630ae-a637-4355-a08b-88cf4568310e |
| 144426cb-b21b-48f9-8d90-60f7d43297a7 | icmp | IPv4 | 0.0.0.0/0 | | None | 5e7630ae-a637-4355-a08b-88cf4568310e |
| 34afc4d2-a3d9-4110-85e1-060047a52abe | None | IPv6 | ::/0 | | None | 5e7630ae-a637-4355-a08b-88cf4568310e |
| 61f9c9ee-3c1b-473e-b0e9-e7f794bc4d7d | None | IPv6 | ::/0 | | 5e7630ae-a637-4355-a08b-88cf4568310e | 5e7630ae-a637-4355-a08b-88cf4568310e |
| 816a7ff6-a7b0-4a62-9efa-c9f6003f5988 | None | IPv4 | 0.0.0.0/0 | | 5e7630ae-a637-4355-a08b-88cf4568310e | 5e7630ae-a637-4355-a08b-88cf4568310e |
| 840d0efd-4b4a-4c82-99e1-fec372b6bcb5 | None | IPv4 | 0.0.0.0/0 | | None | 5e7630ae-a637-4355-a08b-88cf4568310e |
+--------------------------------------+-------------+-----------+-----------+------------+--------------------------------------+--------------------------------------+

 

posted @ 2023-04-25 15:45  苦逼挨踢男  阅读(75)  评论(0编辑  收藏  举报