I currently use ipinfo.app to download ATT Wireless CIDR blocks for firewall allow rules.
curl "https://asn.ipinfo.app/api/download/list/AS20057" > att_cidr.txt
Trying to find an equivalent for ipinfo.io, bit it comes back with an error.
curl -s "https://ipinfo.io/AS20057?token=redacted"
{
"error": "Token does not have access to this API",
"token": "redacted"
}
Is there a method to get simple CIDR blocks for various ASNs using the free tier?
Or do I have to use whois
whois -h whois.radb.net -- '-i origin AS20057' | grep -Eo "([0-9.]+){4}/[0-9]+"