All, I know this is a 5 year old thread and this is some serious necromancy reviving it. But I was recently looking for quick and easy ways to do this myself and this thread is the #1 google hit. Inspired by the thread and a boring Sat night I went away and wrote a perl script that will do exactly this "Block bad countries based on lists of IPs blocks pulled from ipdeny.com" which can be run manually or as a cron job. And because I'm a masochist I made it work for IPFW, PF, for freebsd and iptables for linux. As well as ipset because iptables sucks on it's own. Only major consideration is changing the perl location in the first line of the script for linux.
Tested on FreeBSD 10.3 with pf and ipfw and Ubuntu 16 wth iptables.
I've thrown it up here and adding this in case anyone else ends up here and wants a quick easy dirty way to do this. Project is on github here : https://github.com/KaiLoi/update-fw-BC
Enjoy
Tested on FreeBSD 10.3 with pf and ipfw and Ubuntu 16 wth iptables.
I've thrown it up here and adding this in case anyone else ends up here and wants a quick easy dirty way to do this. Project is on github here : https://github.com/KaiLoi/update-fw-BC
Enjoy