title: Redirect port 443 (https) to IP using iptables
body: <p>I've tried for some hours to do this simple job, but it is not so simple like you think.</p>
  
  <p>I wanted to redirect every request for 443 and 80 port to a webserver , in my example <code>http://127.0.0.1:80</code></p>
  
  <p>Port 80 worked without any problems, but 443 port tried me a lot of time...</p>
  
  <p>I guess you've tried already to run the following command:</p>
  
  <pre><code>iptables -t nat -A OUTPUT -p tcp -m tcp --dport 443 -j DNAT --to-destination 127.0.0.1:80
  </code></pre>
  
  <p>But this is wrong, because the port 443 cannot be redirected to other ports than 443.</p>