See the script and docs here: http://doc.emergingthreats.net/bin/view/Main/EmergingFirewallRules