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