Security group rules

From MediaWiki
Revision as of 10:50, 1 July 2024 by Sst-ska (talk | contribs)
Jump to navigation Jump to search

Overview

This page describes the handling of Security Group Rules.

OpenStack RC File

Source the sst-domain openrc file specific to this project:

source ~/openrc/project\ name-openrc.sh

After you sourced the file, you need to enter a password:

Please enter your OpenStack Password for project stepping stone AG - Internal Systems Temporary as user sst-domain:

Security groups

Security groups - List all security group rules within a project

project_id=6fd0ccd8b5ae44d292c67f0d3e75ca20    # stepping stone AG - Internal Systems Temporary

security_group_ids=$(
    openstack security group list \
        --project "${project_id}" \
        --column ID \
        --format value
)

for seucrity_group_id in ${security_group_ids}; do
    openstack security group rule list \
        ${seucrity_group_id} \
        --format value
done
58252b2e-ccde-4326-9542-c9c47fddceff tcp IPv4 85.195.192.69/32 22:22 None
d34a81a0-df8b-46b4-a28d-d3a66041856a tcp IPv4 194.176.109.13/32 22:22 None
c14231d1-d92a-475e-ade3-202751b9be2b tcp IPv4 0.0.0.0/0 22:22 bb0b7079-cbe0-410c-8855-510cab69921a
0f3423db-b36f-4ff4-8c3a-4566f2a82a0d tcp IPv4 0.0.0.0/0  None
88cf4321-f1fd-4069-bb69-6ea19062e3cb udp IPv4 0.0.0.0/0  None
bfab8562-a672-4db3-b427-54a13353c05b icmp IPv4 0.0.0.0/0 type=8 None
fe38a26b-cc3e-4f68-ad79-afd4d02c97f7 icmp IPv4 0.0.0.0/0 type=8 None
a5b22c86-e03c-4d36-9e9f-6b41f2725083 tcp IPv4 0.0.0.0/0 3389:3389 None
...
...