title: How do you edit a rule in iptables?
body: <p>I have a rule in iptables that looks like this:</p>
  
  <pre><code>DROP       all  --  5.158.238.32         anywhere 
  </code></pre>
  
  <p>But I would like to change it to be:</p>
  
  <pre><code>DROP       all  --  5.158.0.0/16         anywhere
  </code></pre>
  
  <p>How do I do this?</p>
  
  <p>I've found info on how you add rules but this seems to append rules to the end of the list and for some reason the rule doesn't take effect unless it's higher up.</p>
  
  <p>I've also found info on editing a file but my distro (debain) doesn't seem to have a file any of the locations mentioned in the articles - is there a file I can edit somewhere?</p>
  
  <p>Any pointers in the right direction would be much appreciated.</p>
  
  <p>Cheers</p>
  
  <p>Ben</p>