A Simple iptables Firewall Script to Block All Ports

This simple script is very useful and very simple and will give you the basics of what you can do with Linux’s iptables firewall. This is a great way to restrict access to everything but except port 80 and give port 22 to certain IPs.