I would like to block all countries except mine in iptables, that is a list with about 100.000 Entries.
How can I define this blacklist file in a script, so iptables blocks all those IP ranges?
Maybe I can use: http://www.ipdeny.com/ipblocks/data/countries/ that provides lists in the form
18.104.22.168/20 22.214.171.124/21 126.96.36.199/21 188.8.131.52/21 ...
I want to be able to change the blacklistfile easily without having to change the iptables-script.