Hi guys,
Is there a way to have multiple geoip2 databases loaded into Kamailio and then point the geoip2_match to them?
If I understand correctly the docs I can only load one: https://www.kamailio.org/docs/modules/6.0.x/modules/geoip2.html#geoip2.p.pat...
Is my assumption correct?
Thanks, Joel.
Hello,
you probably could look into building a custom database for your purposes, e.g. with tools like this: https://github.com/safing/mmdbmeld
Cheers,
Henning
From: Joel Serrano via sr-users sr-users@lists.kamailio.org Sent: Montag, 7. April 2025 23:11 To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Cc: Joel Serrano joel@textplus.com Subject: [SR-Users] Load multiple geoip2 databases (City + ASN)
Hi guys,
Is there a way to have multiple geoip2 databases loaded into Kamailio and then point the geoip2_match to them?
If I understand correctly the docs I can only load one: https://www.kamailio.org/docs/modules/6.0.x/modules/geoip2.html#geoip2.p.pat...
Is my assumption correct?
Thanks, Joel.
Just a question. I know only one GeoIP provider exists and only one database. https://www.maxmind.com/en/geoip-databases
Who is the second provider?
On Tue, Apr 8, 2025 at 12:37 AM Joel Serrano via sr-users < sr-users@lists.kamailio.org> wrote:
Hi guys,
Is there a way to have multiple geoip2 databases loaded into Kamailio and then point the geoip2_match to them?
If I understand correctly the docs I can only load one: https://www.kamailio.org/docs/modules/6.0.x/modules/geoip2.html#geoip2.p.pat...
Is my assumption correct?
Thanks, Joel. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
@Henning: I didn't know about that tool, thank you for sharing.
@Sergey: It's the same provider, and it offers several different databases (Country / City as you know, ASN [1], and then there are paid ones, like the Anonymous [2], etc.)
My goal was to get the ASN and the 2-letter Country Code. Problem is each of those are in separate databases. Right now I'm doing it with a python3 script and KSR, but I was wondering if it could be done with the geoip2 module directly.
Thank you guys for the input.
Joel.
[1] https://dev.maxmind.com/geoip/docs/databases/asn/ [2] https://www.maxmind.com/en/geoip-anonymous-ip-database
On Tue, Apr 8, 2025 at 4:01 AM Sergey Safarov s.safarov@gmail.com wrote:
Just a question. I know only one GeoIP provider exists and only one database. https://www.maxmind.com/en/geoip-databases
Who is the second provider?
On Tue, Apr 8, 2025 at 12:37 AM Joel Serrano via sr-users < sr-users@lists.kamailio.org> wrote:
Hi guys,
Is there a way to have multiple geoip2 databases loaded into Kamailio and then point the geoip2_match to them?
If I understand correctly the docs I can only load one: https://www.kamailio.org/docs/modules/6.0.x/modules/geoip2.html#geoip2.p.pat...
Is my assumption correct?
Thanks, Joel. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Could you create a feature request on Kamailio repo?
On Wed, Apr 9, 2025, 8:57 AM Joel Serrano joel@textplus.com wrote:
@Henning: I didn't know about that tool, thank you for sharing.
@Sergey: It's the same provider, and it offers several different databases (Country / City as you know, ASN [1], and then there are paid ones, like the Anonymous [2], etc.)
My goal was to get the ASN and the 2-letter Country Code. Problem is each of those are in separate databases. Right now I'm doing it with a python3 script and KSR, but I was wondering if it could be done with the geoip2 module directly.
Thank you guys for the input.
Joel.
[1] https://dev.maxmind.com/geoip/docs/databases/asn/ [2] https://www.maxmind.com/en/geoip-anonymous-ip-database
On Tue, Apr 8, 2025 at 4:01 AM Sergey Safarov s.safarov@gmail.com wrote:
Just a question. I know only one GeoIP provider exists and only one database. https://www.maxmind.com/en/geoip-databases
Who is the second provider?
On Tue, Apr 8, 2025 at 12:37 AM Joel Serrano via sr-users < sr-users@lists.kamailio.org> wrote:
Hi guys,
Is there a way to have multiple geoip2 databases loaded into Kamailio and then point the geoip2_match to them?
If I understand correctly the docs I can only load one: https://www.kamailio.org/docs/modules/6.0.x/modules/geoip2.html#geoip2.p.pat...
Is my assumption correct?
Thanks, Joel. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
100%.
I’ll link the ticket here when I have it.
Joel.
On Wed, Apr 9, 2025 at 01:29 Sergey Safarov s.safarov@gmail.com wrote:
Could you create a feature request on Kamailio repo?
On Wed, Apr 9, 2025, 8:57 AM Joel Serrano joel@textplus.com wrote:
@Henning: I didn't know about that tool, thank you for sharing.
@Sergey: It's the same provider, and it offers several different databases (Country / City as you know, ASN [1], and then there are paid ones, like the Anonymous [2], etc.)
My goal was to get the ASN and the 2-letter Country Code. Problem is each of those are in separate databases. Right now I'm doing it with a python3 script and KSR, but I was wondering if it could be done with the geoip2 module directly.
Thank you guys for the input.
Joel.
[1] https://dev.maxmind.com/geoip/docs/databases/asn/ [2] https://www.maxmind.com/en/geoip-anonymous-ip-database
On Tue, Apr 8, 2025 at 4:01 AM Sergey Safarov s.safarov@gmail.com wrote:
Just a question. I know only one GeoIP provider exists and only one database. https://www.maxmind.com/en/geoip-databases
Who is the second provider?
On Tue, Apr 8, 2025 at 12:37 AM Joel Serrano via sr-users < sr-users@lists.kamailio.org> wrote:
Hi guys,
Is there a way to have multiple geoip2 databases loaded into Kamailio and then point the geoip2_match to them?
If I understand correctly the docs I can only load one: https://www.kamailio.org/docs/modules/6.0.x/modules/geoip2.html#geoip2.p.pat...
Is my assumption correct?
Thanks, Joel. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!