title: Open port 443 by adding a rule in iptables (Ubuntu)
body: <p>Im new to ubuntu and using ubuntu server 12.04.
  When I run <code>nmap localhost</code> I get the following output :</p>
  
  <pre><code>Not shown: 997 closed ports
  PORT     STATE SERVICE
  22/tcp   open  ssh
  80/tcp   open  http
  3306/tcp open  mysql
  </code></pre>
  
  <p>This means that port 443(https) is closed. I want to open it.
  So I did the following :</p>
  
  <p>I ran the command </p>
  
  <pre><code>sudo iptables -A INPUT -p tcp --dport 443 -j ACCEPT
  </code></pre>
  
  <p>And to persist the changes I saved the file using <code>sudo sh -c "iptables-save &gt; /etc/iptables.rules"</code></p>
  
  <p>and then I added the following lines to <code>etc/network/interfaces</code> :</p>
  
  <pre><code>pre-up iptables-restore &lt; /etc/iptables.rules
  post-down iptables-save &gt; /etc/iptables.rules
  </code></pre>
  
  <p>After rebooting my system I ran <code>sudo iptables -L</code> and the line </p>
  
  <pre><code>Chain INPUT (policy ACCEPT)
  target     prot opt source               destination
  ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:https
  </code></pre>
  
  <p>was visible.</p>
  
  <p>However now when I run <code>nmap localhost</code> I still dont see 443 as open.</p>
  
  <p>Please help!</p>