Set white list

Products

JCS for MongoDB

2022-02-21 08:24:33

Set white list

The cloud database MongoDB supports setting the whitelist function. You can precisely control access sources through the whitelist.

The CIDR of the VPC where the current instance is located will be added to the whitelist by default after the MongoDB instance is created, that is, there are no restrictions on the IPs in the current VPC.

Moreover, if the VPC where the current instance is located supports IPv6, only IPv6 CIDRs are added by default.

Use Restrictions

  • Each MongoDB instance currently allows up to 45 IP addresses or IP segments to be added.

Precondition

  • The MongoDB instance status is running and the billing status is normal.

Operation Steps

  1. Log in MongoDB Console.

  2. On the "Instance List" page, select the target instance and click Instance Name to go to the "Instance Details" page.

  3. Click Data Security on the "Instance Details" page to enter the whitelist setting page.

    Whitelist

  4. Click Set Whitelist to open the settings popup window.

    You can manually fill in the IP or IP segment, or directly load the intranet IP of the Virtual Machine.

    • Fill in manually

      Manual Fill in

      Enter the IPs or IP segments to be accessed in the text box, and separate multiple IPs (or IP segments) with commas or line breaks. For example:

      • Assigned IP address: 192.168.0.1 access of IP address 192.168.0.1 is allowed
      • Assigned IP segment: 192.168.0.0/24 (access of 192.168.0.1 to 192.168.0.255 is allowed)
      • Multiple IP settings shall be separated by English comma or newlines, such as 192.168.0.1 and 192.168.0.0/24.
      • Fill in "0.0.0.0/0" (IPv4) or "::/0" (IPv6) without restriction.
    • Upload private IP of virtual machine

      Load intranet IP

      • Click Load Intranet IP of Virtual Machine in the lower left corner of the pop-up window to enter the "IP Selection Pop-up Window".
      • The left side of the pop-up window displays the Virtual Machine IP currently in the same VPC as the MongoDB instance. You can make quick selections using the Select All button and the search box. The selected IP will be displayed in the preview area on the right. IPv6 will be added only if the current Virtual Machines support IPv6.
      • Click OK after selection is completed.
      • The intranet IP of the Virtual Machine will be automatically loaded into the text box.
  5. After editing is completed, click OK to complete the settings.

  6. The whitelist will take effect within 1 minute after being set. You can view the currently set IP on the whitelist settings page, and adjust the settings at any time according to business changes.

Related References

Feedback

开始与售前顾问沟通

可直接拨打电话 400-098-8505转1

我们的产品专家为您找到最合适的产品/解决⽅案

在线咨询 5*8⼩时

1v1线上咨询获取售前专业咨询

点击咨询
企微服务助手

专业产品顾问,随时随地沟通