Fix This Page
Navigation

Add Entries to the Whitelist

Atlas only allows client connections to the cluster from entries in the group’s whitelist. Each entry is either a single IP address, a CIDR-notated range of addresses, or if using Set up VPC Peering Connection, a Security Group associated with the peer VPC.

The whitelist applies to all clusters in the group and can have up to 20 entries.

To add an entry to the whitelist, from the Clusters view, select the Security tab, then click IP Whitelist, then Add IP Address.

Procedure

1

Go to IP Whitelist view.

From the Clusters view, select the Security tab, then IP Whitelist.

Click Add IP Address.

2

Enter an IP address, CIDR block, or Security Group.

Important

Ensure that you add the IP address you will use to access MongoDB as the admin user.

Enter the desired IP address or CIDR-notated range of addresses:

Entry Grants
An IP address Access from that address.
A CIDR-notated range of IP addresses

Access from the designated range of addresses.

For peer VPC connections, you can specify the CIDR block (or a subset) or the associated Security Group.

The Internet provides online tools for converting a range of IP addresses to CIDR, such as http://www.ipaddressguide.com/cidr.

Security Group Access via Security Group membership for peer VPC connections.
0.0.0.0/0

Unrestricted access. All IP addresses have access to your group’s clusters.

Note

For production clusters, avoid adding 0.0.0.0/0 to the cluster’s whitelist as this can expose the cluster to denial of service attacks.

3

Click Save and Close.