In my previous post I have showed how to easily generate IP range assigned to some country. I have modified this previous script to generate IP blocks for all countries and put it online for free download and usage.
You can find them here http://www.iwik.org/ipcountry/ This list is generated daily at 12:00 CET.
This list can be used for example on mikrotik router to block/allow access from specified countries.
To import country range, for example Slovak ranges, as firewall address-list use commands
IPv6 is now supported and script also generates IPv6 firewall address list. See http://blog.erben.sk/2019/12/11/country-ipv6-ranges/