Project security groups
Security groups control network traffic to your instances by applying IP filter rules that define which connections are permitted. Use security groups to isolate project workloads and ensure that only authorized traffic reaches your instances.
All projects have a default security group that is applied to any instance that has no other defined security group. Unless you change the default values, this security group denies all incoming traffic and allows only outgoing traffic from your instance.
You can apply a security group directly to an instance during instance creation, or to a port on the running instance.
Do not delete the default security group without creating groups that allow required egress. For example, if your instances use DHCP and metadata, your instance requires security group rules that allow egress to the DHCP server and metadata agent.
Create a security group Copy linkLink copied!
Create a security group to define the IP filter rules that control network traffic to your instances and ports, so that you can secure your workloads against unauthorized access.
Before you begin Copy linkLink copied!
- The administrator has created a project for you and has provided you with a
clouds.yamlfile for you to access the cloud. - You have installed the
python-openstackclientpackage.
Procedure Copy linkLink copied!
Add a security group rule Copy linkLink copied!
Add a rule to a security group to open specific ports and protocols, so that your instances can communicate with authorized external resources while maintaining secure access controls.
About this task Copy linkLink copied!
By default, rules for a new group only provide outgoing access. You must add new rules to provide additional access.
Procedure Copy linkLink copied!
Delete a security group rule Copy linkLink copied!
Delete a security group rule to close unused ports and revoke specific network access, so that you can reduce security risks and block unwanted traffic to your instances.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
- In the dashboard, select Project > Compute > Access & Security.
- On the Security Groups tab, click Manage Rules for the security group.
- Select the security group rule, and click Delete Rule.
- Click Delete Rule again.
Delete a security group Copy linkLink copied!
Delete a security group that is no longer associated with any ports to remove outdated IP filter rules and keep your project security configuration clean.
Before you begin Copy linkLink copied!
- The administrator has created a project for you and has provided you with a
clouds.yamlfile for you to access the cloud. - You have installed the
python-openstackclientpackage.