- Mastering MongoDB 3.x
- Alex Giamas
- 51字
- 2021-08-20 10:10:58
Limiting network exposure
The oldest security method to secure any server is to disallow it from accepting connections from unknown sources. In MongoDB, this is done in a configuration file with a simple line:
net:
bindIp: <string>
Her, <string> is a comma-separated list of IPs that the MongoDB server will accept connections from.