Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

421
Views
How to disable remote connections to MongoDB?

Normally the answer to question is to set:

bindIp: 127.0.0.1

I have this set in /etc/mongod.conf. Unfortunately I am still allowed access to this database remotely. I have restarted the Mongo service a couple times, to no avail.

Does anyone have an idea as to why my database is still accessible remotely?

I'm using MongoDB version 3.0.9

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Remoting in to mongod clients using bindIp = 127.0.0.1 is possible through an SSH tunnel because the shell session is seen as 127.0.0.1.

over 4 years ago · Santiago Trujillo Report

0

Enabling bind_ip = 127.0.0.1 should be sufficient. Restart MongoDB server after the changes are done.

References:

http://greenwireit.com/it-tech-support-articles/enable-remote-access-default-mongodb-installation/

https://www.mkyong.com/mongodb/mongodb-allow-remote-access/

http://wptrafficanalyzer.in/blog/enabling-and-disabling-remote-access-to-a-mongodb-server/

over 4 years ago · Santiago Trujillo Report

0

Perhaps you must specify the mongodb.conf file when loading your mongod instance. Like so:

mongod --fork --config /etc/mongodb.conf --logpath mongodblogs/mongodb.log --dbpath mongod

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!