Step 3: Configure Security Group Rules

Scenarios

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.

Precautions

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.

Procedure

  1. Log in to the management console.
  2. Under Network, click Virtual Private Cloud.
  3. In the navigation pane on the left, choose Access Control > Security Groups.
  4. On the Security Groups page, locate the target security group and click Manage Rule in the Operation column.
  5. On the displayed page, click Add Rule.
  6. In the displayed dialog box, set required parameters to add an inbound rule.
  7. Click OK.