Hacker Newsnew | past | comments | ask | show | jobs | submit | bswinnerton's commentslogin

Here's a simpler alternative with IP Guide that doesn't require a CLI:

  curl -sL ip.guide/AS19551 | jq .routes


I'd also suggest filing a correction with MaxMind, which is where most modern geolocation data is derived: https://www.maxmind.com/en/geoip-location-correction.


Isn't there an alternative to MaxMind? Seems like a problem if they're the only useful source and they can change their license/fee to anything they want at any time.


In most cases, their database is entirely free as in free beer. You can't modify and contribute back to it, though (for somewhat obvious reasons). You can download a free local copy and purchase a more advanced version with more information. But if you need a simple lookup, the database is free, excellent, and is updated twice a week.

https://dev.maxmind.com/geoip/geolite2-free-geolocation-data


Great idea. This is rolling out right now.


It's not available from the API, but there is a "last updated" date when you view it in a browser. It's at most 8 hours old.


For the backend, it's written in Rust using a few key crates: axum for the api, bgpkit-parser for parsing the MRT data, and reqwest for fetching data at boot.

The site is hosted on Neptune Networks, another side project of mine for people to learn and experiment with BGP.


You'll have to follow the redirects since the site doesn't support HTTP, but just shipped pretty-printing.


Redirection from http to https is trivial on most http servers (nginx, apache, etc)


No rate limits or auth for requests, but as mentioned below the api starts to load shed at 2k concurrent requests.


> Will this be open-sourced?

I don't think there's a strong reason to keep it closed-source.

> Were you already comfortable in Rust or is there a reason you selected Rust for this project?

This was a big learning opportunity for me to learn Rust. I had done two small projects in Rust before this one.

> How often are RIPE info and MaxMind data updated these days?

The MRT dumps where it gets its BGP data are updated every 8 hours, and MaxMind appears to be updated twice a week.


IP Guide is also using MaxMind, I'm not familiar with many other data sources for that kind of data. Are you seeing discrepancies?

No rate limits or auth for requests, but as mentioned below the api starts to load shed at 2k concurrent requests.


Thanks. Yeah, I was just hoping it might have access to some different data. I've seen no discrepancy. I tried one IP address that I've been trying to map, and I got the same answer.


Their city level data tends to be proprietary so maybe double check you’re ok in your use.


Yeah, if you click on "bulk data" you'll see the two statically hosted CSVs for ASN and IP data. What else would you find useful in those datasets? It's quite easy to expand on them.


I suppose I was overly enthusiastic about the project and overlooked the bulk part . Thank you. Personally, I prefer to use local MMDB versions as they provide faster results and do not require network usage. Having knowledge about whether an IP is a proxy, VPN, data center, etc. is valuable to me, but I understand that it may vary depending on each project's requirements.


Without wishing to gazump on tuga's excellent project, you can get mmdb files for IPs and ASNs free for personal use from https://ipnetdb.com/ that will probably provide the data you want.

(Disclaimer: I work for the company that develops IPNetDB).


Countries.


The country code is the last portion of the networks CSV:

  $ curl -sL ip.guide/bulk/networks.csv | head -n 2
  prefix,asn,organization,country
  1.0.0.0/24,13335,"Cloudflare, Inc.",US


I meant something like de.csv to get a list of IP ranges in Germany.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: