bswinnerton

Joined 14 years ago

Karma
305
Submissions
47
Member since
Aug 9
[ my public key: https://keybase.io/bswinnerton; my proof: https://keybase.io/bswinnerton/sigs/TivfoG3vmaFSvelMY7-IHyyuG24Q52tmZsa2819GbK4 ]
View on Hacker News

Recent submissions

Comment · 2 years ago
Here's a simpler alternative with IP Guide that doesn't require a CLI:

  curl -sL ip.guide/AS19551 | jq .routes
Comment · 2 years ago
Comment · 2 years ago
Great idea. This is rolling out right now.
Comment · 2 years ago
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.
Comment · 2 years ago
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.

Comment · 2 years ago
You'll have to follow the redirects since the site doesn't support HTTP, but just shipped pretty-printing.
Comment · 2 years ago
No rate limits or auth for requests, but as mentioned below the api starts to load shed at 2k concurrent requests.
Comment · 2 years ago
> 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.

Comment · 2 years ago
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
Comment · 2 years ago
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.

Comment · 2 years ago
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.
Comment · 2 years ago
Oh cool! Is this a fork of ifconfig.co?
Comment · 2 years ago
Yes! Quite easily, but it requires thinking through the right API design. I'll see if I can work this in this weekend.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton