Check out the sticky post at the top of this forum. There are tons of links to iptables info and various firewalls for *nix.
I'd say your best bet would be to use one of the many GUI front-ends to iptables, or using a pre-written script instead of writing your own. Guarddog and Firestarter are two good GUIs to setup your firewall rules, I think you'll find using something like that a bit easier than writing a script. You can then modify the rules that the GUI or script made for you and run those on any system.
|