A security group is a collection of access control rules for ECSs and GaussDB(openGauss) DB instances that have the same security protection requirements and are mutually trusted in a VPC.
To ensure database security and reliability, you need to configure security group rules to allow specific IP addresses and ports to access the GaussDB(openGauss) DB instances.
When you attempt to connect to a DB instance through an EIP, you need to configure an inbound rule for the security group associated with the DB instance.
The default security group rule allows all outbound data packets. ECSs and GaussDB(openGauss) DB instances can access each other if they are deployed in the same security group. After a security group is created, you can add security group rules to control the access from and to the GaussDB(openGauss) DB instance in the security group.
The default value of Source is 0.0.0.0/0, indicating that all IP addresses can access the GaussDB(openGauss) DB instance in the security group.