By default, Tair (Redis OSS-compatible) blocks access from all IP addresses to ensure the security and stability of instances. Before you use a Tair (Redis OSS-compatible) instance, you must add IP addresses or CIDR blocks that are used to access the instance to the whitelists of the instance.
Procedure
In this example, the client resides on an Elastic Compute Service (ECS) instance, and the ECS instance is deployed in the same virtual private cloud (VPC) as the Tair (Redis OSS-compatible) instance.
Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.
In the left-side navigation pane, click Whitelist Settings.
Find the default whitelist and click Modify in the Actions column.
If you set Method to Add IP Address to Import ECS Internal IP Address, the panel displays the private IP addresses of ECS instances that are deployed in the same region as the Tair instance.
Move the pointer over an IP address to view the ID and name of the ECS instance to which the IP address is assigned.
Select the required IP addresses and move them to the right-side section.
Click OK.
Next, you can connect to the Tair (Redis OSS-compatible) instance from the client. For more information, see Step 3: Connect to an instance.
References
If you want to access a Tair instance from an on-premises device or if your ECS instance is not in the same VPC as the Tair instance, you can connect to the Tair instance over the Internet. However, this is not recommended. You can copy the IP address of the client to a whitelist of the Tair instance. For more information, see Configure whitelists.