IPTables quick sample

I am not use to using IPTables, i usually use IPChains, can someone provide me a few quick examples of using iptables to

1. deny a single ip, blocking a specifc port
2. deny a single ip, blocking a range of ports
3. deny a range of ips, blocking a specifc port (IE: /24 or something)
4. deny a range of ips, blocking a range of ports (IE: /24 or something)

 

 

 

 

Top