How to Configure Allowed Hosts, Firewall, Whitelisting and Blacklisting in MongoDB

Learn how to protect your database from attackers by only allowing connections coming from certain IPs.

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

--

The required steps for configuring whitelisting and blacklisting in MongoDB are different depending on where your database is hosted:

For any other cloud provider, the required steps should be quite similar to Compose or Mlab. You can read those how-tos and they will surely help you to figure out how it works with your provider.

--

--