CIDR (ip block) RIPENCC LOCAL COUNTRY TRAFIC IPs ???SCRIPT?

Hello, is where script or somthink like that?
http://www.completewhois.com/statistics/data/ips-bycountry/rirstats/LT-cidr.txt
I want import to address-list (local trafic)

in linux working this scrip:
wget --quiet -c -O - [ftp://ftp.ripe.net/ripe/stats/`date](ftp://ftp.ripe.net/ripe/stats/`date)
“+%Y”/delegated-ripencc-date “+%Y%m%d”`.bz2 | bzcat | grep -i “|LT|ipv4|”
| awk -F ‘|’ ‘{print $4 “/” int(32 - log($5)/log(2))}’
Tho can help me?

Best regards to all :slight_smile:
and thanks

wget --quiet -c -O - [ftp://ftp.ripe.net/ripe/stats/`date](ftp://ftp.ripe.net/ripe/stats/`date) “+%Y”/delegated-ripencc-date “+%Y%m%d”`.bz2 | bzcat | grep -i “|LT|ipv4|” | awk -F ‘|’ ‘{print “/ip firewall address-list add list=ripe address=” $4 “/” int(32 - log($5)/log(2)) " disabled=no"}’

You can pipe that to a file, then upload as a .rsc and execute. You will want to clear the list first most likely.

:foreach subnet in [/ip firewall address-list find list=LISTNAME] do {
/ip firewall address-list remove $subnet
}

wget --quiet -c -O - [ftp://ftp.ripe.net/ripe/stats/`date](ftp://ftp.ripe.net/ripe/stats/`date) “+%Y”/delegated-ripencc-date “+%Y%m%d”`.bz2 | bzcat | grep -i “|LT|ipv4|” | awk -F ‘|’ ‘{print “/ip firewall address-list add list=ripe address=” $4 “/” int(32 - log($5)/log(2)) " disabled=no"}’

This script i use now, and importing to mikrotik, this is not good for me!
i have more then 30 MT who need oversea balance loading… not a big problem in 2 month one time not big problem :slight_smile:
Hmm if we On one unix make auto.rsc and put to static FTP, then from mikrotik uploading from ftp this file ?
in forum i found somthing with uploading file from ftp to MT , but in this time didn’t have on screen it!
how it make simple :slight_smile: ?

Thanks for answer!