title: Opening a port on Ubuntu
body: <p>I am trying to open up port on my Ubuntu machine to allow me to connect the Mongo using an external program. I ran this which is the command line to open a new port:</p>
  
  <pre><code>sudo iptables -A INPUT -p tcp --dport 27017 -j ACCEPT
  </code></pre>
  
  <p>but when I ran this to check if the new rule was there...</p>
  
  <pre><code>sudo netstat -ntlp | grep LISTEN
  </code></pre>
  
  <p>...the new port wasn't in the list - any ideas?</p>