This topic describes how to change the network isolation mode of an ApsaraDB RDS for MySQL instance from the standard whitelist mode to the enhanced whitelist mode. An enhanced IP address whitelist can contain only the IP addresses from the classic network or virtual private clouds (VPCs).

Prerequisites

  • Your RDS instance uses local SSDs.
  • Your RDS instance runs MySQL 5.1, MySQL 5.5, MySQL 5.6, or MySQL 5.7.

Background information

RDS instances support the following network isolation modes:

  • Standard whitelist mode

    A standard IP address whitelist can contain IP addresses from both the classic network and VPCs.

  • Enhanced whitelist mode

    An enhanced IP address whitelist can contain only the IP addresses from the classic network or VPCs. When you create an enhanced IP address whitelist, you must specify the network type of the enhanced IP address whitelist.

Changes after you switch to the enhanced whitelist mode

  • If your RDS instance resides in a VPC, an IP address whitelist of the VPC network type is automatically created. The new IP address whitelist contains all IP addresses and CIDR blocks that are replicated from the original IP address whitelists.
  • If your RDS instance resides in the classic network, an IP address whitelist of the classic network type is automatically created. The new IP address whitelist contains all IP addresses and CIDR blocks that are replicated from the original IP address whitelists.
  • If your RDS instance runs in hybrid access mode, the following IP address whitelists are created: an IP address whitelist of the VPC network type and an IP address whitelist of the classic network type. The two IP address whitelists contain all IP addresses and CIDR blocks that are replicated from the original IP address whitelists. For more information, see Configure the hybrid access solution for an ApsaraDB RDS for MySQL instance.
Note
  • After you switch to the enhanced whitelist mode, the security group of the Elastic Compute Service (ECS) instance remains unchanged. For more information, see Configure an IP address whitelist for an ApsaraDB RDS for PostgreSQL instance.
  • ApsaraDB RDS requires approximately 3 minutes to switch your RDS instance to the enhanced whitelist mode. Your application remains connected to your RDS instance during the switching period.

Usage notes

  • After you switch to the enhanced whitelist mode, you cannot roll the instance back to the standard whitelist mode.
  • In enhanced whitelist mode, an IP address whitelist of the classic network type can also be used to allow access over the Internet. If you want to access your RDS instance from a host over the Internet, you must add the public IP address of the host to an IP address whitelist of the classic network type.

Procedure

  1. Access RDS Instances, select a region at the top, and then click the ID of the target RDS instance.
  2. In the left-side navigation pane, click Whitelists and SecGroup.
  3. On the Whitelist Settings tab, click Switch to Enhanced Whitelist (Recommended).
  4. In the message that appears, click Confirm.

FAQ

  • My RDS instance runs in enhanced whitelist mode. If I want to access my RDS instance from a host over the Internet, how do I determine the IP address whitelist to which I must add the public IP address of the host?

    If you want to access your RDS instance from a host over the Internet, you must add the public IP address of the host to an IP address whitelist of the classic network type.

  • What advantages does the enhanced whitelist mode have over the standard whitelist mode?

    The enhanced whitelist mode allows you to manage access to your RDS instance based on the network types of the IP addresses. If you add an IP address to an IP address whitelist of the VPC network type, the IP address is granted access to your RDS instance only within the specified VPC. However, the IP address is not granted access to your RDS instance over the Internet. This increases the security of your RDS instance.