title: How to listen only to localhost on MongoDB
body: <p><a href="http://www.mongodb.org/display/DOCS/Security+and+Authentication" rel="noreferrer">MongoDB Suggests</a> that the easy way to handle security is to run it in a trusted environment, given that, "in such a configuration, one must be sure only trusted machines can access database TCP ports."</p>
  
  <p>What would be the best approach for doing this? Is there a way for mongodb to natively only listen to localhost?</p>
  
  <p>I'm using ubuntu 10.10</p>