To ensure the security and stability of ApsaraDB for SelectDB instances, the system rejects requests from all IP addresses to access the ApsaraDB for SelectDB instances by default. Before you use an ApsaraDB for SelectDB instance, you must add the IP addresses or CIDR blocks of a client to the whitelist of the ApsaraDB for SelectDB instance.
Prerequisites
An ApsaraDB for SelectDB instance is created. For more information, see Create an instance.
Usage notes
You can configure a whitelist for an ApsaraDB for SelectDB instance to protect the instance security at a higher level. We recommend that you maintain the whitelist on a regular basis.
When you configure a whitelist for an ApsaraDB for SelectDB instance, the ApsaraDB for SelectDB instance runs as expected.
To ensure data security, you cannot add the IP address 0.0.0.0 or the CIDR block 0.0.0.0/0 to the whitelist of an ApsaraDB for SelectDB instance.
ApsaraDB for SelectDB provides a whitelist named default. You cannot delete the whitelist. You can only modify or clear the settings of the whitelist.
The default whitelist contains only the IP address 127.0.0.1 and rejects requests from all IP addresses to access the ApsaraDB for SelectDB instance.
Each whitelist of an ApsaraDB for SelectDB instance can contain up to 1,000 IP addresses or CIDR blocks.
It takes about 1 minute to add IP addresses or CIDR blocks to a whitelist, remove IP addresses or CIDR blocks from a whitelist, or modify IP addresses or CIDR blocks in a whitelist.
Procedure
Log on to the ApsaraDB for SelectDB console.
In the top navigation bar, select the region in which the ApsaraDB for SelectDB instance resides.
In the left-side navigation pane, click Instances. On the Instances page, find the ApsaraDB for SelectDB instance that you want to manage and click its ID. The Instance Details page appears.
In the left-side navigation pane of the Instance Details page, click Data Security.
On the Data Security page, find the default whitelist and click Modify in the Actions column.
NoteAlternatively, you can click Create Whitelist. In the Create Whitelist panel, configure the Whitelist Name and Whitelist parameters.
In the Modify Whitelist panel, add IP addresses or CIDR blocks to the whitelist.
Click OK.
After the IP addresses or CIDR blocks are added to the whitelist, you can view the IP addresses or CIDR blocks that you added on the Data Security page.