title: reset and remove existing firewall port redirect rules in ubuntu
body: <p>I have the following firewall settings in iptables.</p>
  
  <pre><code>iptables -t nat -A OUTPUT -o lo -p tcp --dport 80 -j REDIRECT --to-port 8080
  iptables -t nat -A OUTPUT -o lo -p tcp --dport 443 -j REDIRECT --to-port 8181
  </code></pre>
  
  <p>Now I want to reset and remove these redirection from firewall, I commented out the above two lines , tried iptables -F, but the redirection still exists.</p>
  
  <p>How to reset and remove the redirection from firewall permanently?</p>