Firewall script tool for iptables
This article was written in 2009. Things change over time. So the information presented here may no longer be current and up-to-date, or it may have even become factually inaccurate. There may be useful information here, but you should check recent sources before relying on this article.

If you run a public Linux server of any kind then you should have a firewall running. Hopefully you already know that. I prefer iptables because it is so powerful, however the iptables language is a little less than intuitive.
If you’re just getting started with iptables and you want a good strong rule set to use or learn from then check out the Easy Firewall Generator for IPTables. This is a great little tool that will give you a shell script with a very nice rule set.
Just fill out the form and save the script to your server. Run the shell script and you have a great firewall with good logging. Though don’t auto-run the script on boot-up until you are absolutely sure that you have the rules perfect, iptables can and will happily lock you out of your own server for good.