GyulyVGC / sniffnet

Comfortably monitor your Internet traffic 🕵️‍♂️
https://sniffnet.net
Apache License 2.0
18.64k stars 558 forks source link

Support IPinfo MMDB database format #533

Closed GyulyVGC closed 4 months ago

GyulyVGC commented 6 months ago

What's the problem?

In version 1.3.0 I introduced the possibility to select custom MMDB databases for country and ASN resolutions (you can find out more about it here).

However, I noticed that IPinfo (one of the best IP data providers globally) uses a slight different format for such databases, which is currently unsupported by Sniffnet (because the application expects databases to be in the canonical MMDB format).

Additional context

The goal is to support both the canonical format and IPinfo's custom MMDB format, so that users of the app will be able to select IPinfo high quality databases.

If you are interested about why IPinfo uses a different format, I suggest you to read this article.

I also want to thank a lot @abdullahdevrel who gave me amazing insights about this topic and wrote a detailed community post about how to interface with IPinfo's MMDBs in Rust.

Related issue: https://github.com/oschwald/maxminddb-rust/issues/82

GyulyVGC commented 6 months ago

@all-contributors please add @abdullahdevrel for ideas, content.

allcontributors[bot] commented 6 months ago

@GyulyVGC

I've put up a pull request to add @abdullahdevrel! :tada:

abdullahdevrel commented 6 months ago

Thank you very much, @GyulyVGC. It is IPinfo's pleasure to be a part of such important OSS software that keeps the internet safe and secure.