Score:0

What's the recommended way to use GeoIP2 with a varying mirror list?

qa flag

I want to setup a webserver, where every HTTP request is directly redirected to a nearby mirror. So far we used the unfortunately no longer supported Perl module Apache2::Geo::IP together with Apache's mod_perl and the legacy Geo::IP from MaxMind Inc.

The mirror list will change from time to time and uses the simple association between URL and the country of this server:

https://www1.crest.fr/archive/ fr
https://www2.uchile.cl/arcivo/ cl
https://www3.blurbs.cc/sammlung/ de

E. g. an user located in Chile will be redirected to https://www2.uchile.cl/arcivo/ etc. A country may have more than one server, which all should be accessed, e.g. randomly or round-robin.

I'm looking for a solution with the GeoIP2 country databases which can run behind a reverse proxy (the old solution did not). What's the recommended way to achieve this?

paladin avatar
id flag
The recommend way today is to use IPv6 multicast addresses and throw the old IPv4 software into trash. https://www.iana.org/assignments/ipv6-multicast-addresses/ipv6-multicast-addresses.xhtml , reserve a single global IPv6 multicast address for your servers, give all your servers the same global IPv6 multicast address, change all DNS to that particular global IPv6 multicast address and watch the magic happen.
Erich avatar
qa flag
Thanks, that would be great. but these are not "my servers". Some volunteers provided fast web space in many countries, but I do not have the possibility to change DNS records on other than the main server.
paladin avatar
id flag
It's not necessary to change all DNS records, but recommend. What is necessary, would be to assign all those servers an IPv6 multicast address.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.