MongoDB Server

Hello redhat engineers

Are you facing problem in mongodb server to remove database automatically, don’t worry here is some steps to make your mongo server more secure.

MongoDB config

  1. The default file is located at /etc/mongodb.conf
  2. The default port is TCP 27017

Change the default port

1.     change the default port 27017 to any other non-standard port. example set it to 2727 . This is more of an obfuscation technique and simply means that default connection adapters will not work.

2. Enable auth – Even if you have deployed your Mongodb servers in a trusted network it is good security practice to enable auth. It provides you “Defence in depth” if your network is compromised. Edit your mongod configuration file to enable auth

# auth = true

2.     Use firewalls – Use firewalls to restrict which other entities are allowed to connect to your mongodb server. Best practice is to only allow your application servers access to the database

Hope this article help you !!

 

 

To view or add a comment, sign in

More articles by Bipin Tiwari

Explore content categories