Tools for IP-ASN-Country mapping.
- The ip-country script generates an ip-<country code>.lst file which contains all the IPv4 prefixes announced by the country's ASNs.
- The asn-country script generates an asn-<country code>.lst file which contains all the autonomous system numbers by the country.
git clone --depth=1 git@github.com:furriest/radb-tools.git
cd ./radb-tools
pip3 install -r requirements.txt
./renew-db
python3 ./ip-country.py RU
python3 ./asn-country.py RU
or
python3 ./ip-country-ripe.py RU