How to Configure Firewall / IP Whitelisting in MongoDB Atlas

Learn how to secure your MongoDB Atlas cluster by configuring IP and security group whitelisting features.

Stampery Inc.
Mongoaudit — the mongoaudit guides
1 min readJan 27, 2017

--

Unlike many other “MongoDB as a service” cloud providers, MongoDB 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 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.

Adding an entry to the MongoDB Atlas IP whitelist

  1. From the Clusters view, select the Security tab, then click IP Whitelist, then Add IP Address.
  2. Enter the desired IP address or security group.
  3. Click Save and Close.

Tip: If you usually run your app in your own computer for testing or development purposes, you may also want to whitelist your home or office IP.

You can also add different IPs at once by comma separating them or a whole range by using CIDR notation ( 22.22.22.22/32 ).

--

--