Are there any online tools that can spit-out a customised config for
iptables? I'm specifically looking for something that has options to include/exclude rules to guard against common attacks.
you can use:
But these rule generators are not much sophisticated. They just create very basic rulesm not advanced. So better use an PHP based front end to create advanced level of iptables rules, here is one
I quite liked this one called LinWiz:
Note that it does create another chain (after INPUT) called LINWIZ-INPUT, but that's easy enough to change if you so desire.