To ensure secure access to your Tair (Redis-compatible) instance, you need to establish network connectivity between your client and the instance and configure an IP whitelist.
Establish network connectivity
Network connectivity between your client and the Tair (Redis-compatible) instance is required for a successful connection. Select the appropriate network type based on your client's location.
|
Client location |
Recommended network type |
Description |
|
||
|
On-premises client |
Internet |
First, configure an IP whitelist, and then apply for a public endpoint. |
|
self-managed IDC |
Use Express Connect to establish a dedicated physical connection between your self-managed IDC and the Tair instance. This enables private network connectivity between your on-premises and cloud environments. |
For more information about network connections, see Plan network connectivity.
Configure an IP whitelist
Only IP addresses in the IP whitelist can access the instance.
Log on to the 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.
-
Add IP addresses to the whitelist based on your client's location.
ECS
-
In the default security group, click Modify.
-
For Method to Add IP Address, select Import ECS Internal IP Address. The private IP addresses of ECS instances in the same region appear.
Hover over an IP address to view the ID and name of the corresponding ECS instance.
-
Select the required IP addresses and move them to the box on the right.
-
Click OK.
ACK
-
Next to Whitelist Setting, click the Security Groups tab.
-
Click Add Security Group. In the dialog box that appears, select the security group of your ACK cluster and move it to the box on the right.
To find the ACK security group, go to Cluster Information > Basic Information > Network > Control Plane Security Group.
-
Click OK.
On-premises
-
To find your public IP address, run the following command on your client:
curl ifconfig.me. -
In the default security group, click Modify. Add your client's public IP address.
-
Click OK.
NoteIf your client has a dynamic IP address, see How do I configure an IP whitelist for a dynamic IP address?
For more information about IP whitelists, see Configure an IP whitelist.
-
If you connect to the instance over the Internet, configure the IP whitelist first. Then, apply for a public endpoint in the Connection Information section on the instance details page.
Next, use one of the following methods to connect to your instance:
FAQ
Dynamic IP whitelist
-
For ECS instances in an auto scaling group, see Automatically add ECS instances to or remove them from the IP whitelist of a Tair instance.
-
For a fixed range of IP addresses, you can add a block of IP addresses in CIDR notation. For example,
10.23.12.0/24represents the IP address range from10.23.12.0to10.23.12.255. -
If your IP addresses change unpredictably, you can use a script to monitor IP changes and call the ModifySecurityIps API operation to update the IP whitelist.