edit-icon download-icon

Security control

Last Updated: Jan 17, 2018

To guarantee database security and stability, ApsaraDB for MongoDB automatically adds the IP address to a whitelist after an instance is created. Therefore, after you create an instance, add the IP addresses or segments that need to access the database to the whitelist. Otherwise, you are not able to view the instance connection address on the Basic Information page of the instance. MongoDB allows you to add up to 1,000 IP addresses.

Add an IP whitelist

  1. Log on to the MongoDB console and find the target instance.

  2. Click the instance ID or Manage or View to go to the Basic Information page.

  3. Click Security Control to go to the IP Whitelist page, as shown in the following figure.

    IP whitelist setting

  4. Click Manually Modify to manually enter IP addresses or segments. You can also click Import ECS Intranet IP to enable the system to automatically add activated intranet IP addresses of ECS.


    • Separate the IP addresses by commas (,). You can add up to 1,000 unique IP addresses/IP segments. Supported IP address formats include, (IP), and (CIDR mode; classless inter-domain routing; /24 indicates the length of the prefix in the IP address; the prefix length ranges from 1 to 32).

    • and a blank field indicates that no IP access restriction is in place. In this case, the database may have a high security risk. We recommend that you set the access permission only for the Internet IP address/IP address segment of your Web server.

Thank you! We've received your feedback.