IPTables Blocking Of Countries

I’ve been hacking around with this for a while now and have it in a workable state.  It’s a script that grabs the latest netblocks for the configured countries from IPDeny.com and loads them in to IPTables rules.  It’s perl and depends on you having the IPTables::IPv4 module installed, but it’s fast and just blocking China and Korea has cut way down on my spam and intrusion attempts.