Enabling or Disabling Access Control

If load balancing is enabled for a database proxy instance, the security group associated with the proxy instance does not apply. You need to use access control to grant access from specific IP addresses.

Enabling Access Control

  1. Log in to the console.

  2. Click image1 in the upper left corner and select a region and a project.

  3. Under Database, click GaussDB. In the navigation pane on the left, click GaussDB(for MySQL).

  4. On the Instances page, click the instance name to go to the Basic Information page.

  5. On the Database Proxy page, enable access control.

    Locate the target proxy instance and click image2 next to the Access Control area.

  6. Click Configure. In the displayed dialog box, configure the access control mode and IP addresses or CIDR blocks.

    • Access Control: The blacklist and whitelist cannot be configured at the same time. If you switch between lists, your previously entered settings will be lost. IP addresses or CIDR blocks in the blacklist are not allowed to access proxy instances.

    • IP Address or CIDR Block: Enter valid IP addresses or CIDR blocks that meet the following requirements:

      • Each line contains an IP address or a CIDR block and ends with a line break.

      • Each IP address or CIDR block can include a description separated by a vertical bar symbol (|), for example, 192.168.10.10|GaussDB01. The description can include up to 50 characters but cannot contain angle brackets (<>).

      • Up to 300 IP addresses or CIDR blocks can be added.

Disabling Access Control

  1. Log in to the console.

  2. Click image3 in the upper left corner and select a region and a project.

  3. Under Database, click GaussDB. In the navigation pane on the left, click GaussDB(for MySQL).

  4. On the Instances page, click the instance name to go to the Basic Information page.

  5. On the Database Proxy page, disable access control.

    Locate the target proxy instance and click image4 next to the Access Control area.