All Products
Search
Document Center

ApsaraDB for Memcache:Configure an IP address whitelist

最終更新日:Aug 07, 2024

Before you use an ApsaraDB for Memcache instance, you must add the IP addresses or CIDR blocks that are allowed to access the instance to the whitelist of the instance. This ensures database security and stability. You can improve access security for Memcache if you properly configure the whitelist. We recommend that you maintain the whitelist on a regular basis.

Usage notes

  • The Elastic Compute Service (ECS) instance whose IP address is added to the whitelist must be deployed in the same region as the Memcache instance.

  • If an application on an ECS instance needs to access multiple Memcache instances, add the IP address of the ECS instance to the whitelists of these Memcache instances.

Procedure

  1. Log on to the ApsaraDB for Memcache console and find the desired ApsaraDB for Memcache instance.

  2. Click the ID of the desired instance.

  3. In the left-side navigation pane, click Whitelist Settings.

  4. Find the default whitelist and click Modify.

    You can also click Add Whitelist to create an IP address whitelist. The name of a whitelist must be 2 to 32 characters in length and can contain lowercase letters, digits, and underscores (_). The name must start with a lowercase letter and end with a lowercase letter or digit.

  5. In the Modify Whitelist dialog box, perform one of the following operations:

    • Manually add IP addresses or CIDR blocks to the whitelist

      Note

      • Separate IP addresses with commas (,). A maximum of 1,000 unique IP addresses can be added. The following formats are supported:

        • 10.23.12.24 (IP address)

        • 10.23.12.24/24 (This is a CIDR block in which /24 indicates that the prefix of the CIDR block is 24 bits in length. You can replace 24 with a value that ranges from 1 to 32.)

      • If you set the prefix length to 0, for example, 0.0.0.0/0 or 127.0.0.1/0, all IP addresses are allowed to access the instance. This poses a high security risk. Proceed with caution.

    • Add private IP addresses of ECS instances to the whitelist

      1. Select Load ECS Internal Network IP.

      2. Select the desired private IP addresses of ECS instances based on your business requirements and add them to the whitelist.

  6. Click OK.