title: iptables block access to all ports except from a partial IP address
body: <p>I'm looking to block all ips from my server and it's ports with the exception of a partial ip 198.55.<strong>.*</strong>. I'd like to limit access to an ISP region do to the fact my personal ip isn't static with our ISP. How would I go about this? Our server was compromised this evening and I'm trying to kill all other traffic to it. </p>
  
  <p>The code below seems to allow a specific ip, but does it block every other IP? Also if I use the x will that act like a wildcard?</p>
  
  <pre><code>iptables -A INPUT -s 74.231.64.xx -j ACCEPT
  </code></pre>