A security group is a collection of access control rules for cloud resources, such as cloud servers, containers, and databases, that have the same security protection requirements and that are mutually trusted. After a security group is created, you can create various access rules for the security group, these rules will apply to all cloud resources added to this security group.
Unless otherwise specified, you do not need to configure deny rules in the inbound direction because requests that do not match allow rules will be denied.
IPv4 default route: 0.0.0.0/0
IPv6 default route: ::/0
Direction |
Action |
Protocol & Port |
Source or Destination |
Description |
---|---|---|---|---|
Inbound |
Allow |
All |
Source: sg-AB |
Allows access requests from security group sg-AB. This rule ensures that instances in the security group can communicate with each other. |
Outbound |
Allow |
All |
Destination: 0.0.0.0/0 |
Allows all requests in the security group to be sent out. |