Open Avalarion opened 5 years ago
could be open based in some configuration, maxmind provide different databases Per example, I have country database in one deployment and city+isp (2 maxmind files) in other deployment
A better approach would be to have Traefik handling this and forwarding those information as a header. This would reduce disk usage, maintenance and of course disk reads.
If Traefik were able to perform a lookup against a GeoIP database, wouldn't it be even better to simply add a middleware that can block based on country code? This would be a very useful feature.
for GitHub keyword search: geolocation :-)
I created fast inlined geoip lib in https://github.com/phuslu/geoip could help it
I'm looking to redirect to diff endpoints based on GeoIP, or location. Is there a way to do this in Traefik2, we are using it as a K8s Ingress/IngressRoute deployed via Helm
Hello all,
Take a look at the following plugin: https://pilot.traefik.io/plugins/276812028621881875/ip2location-plugin
Hello all,
Take a look at the following plugin: https://pilot.traefik.io/plugins/276812028621881875/ip2location-plugin
This means one would have to buy the IP2Location IP-Country db for 49$ per year right?
I‘m also seeking this feature to add the response headers with country code via geoip2-lite. I had tried to install these plugins but failed. https://pilot.traefik.io/plugins/276812028621881875/ip2location-plugin https://pilot.traefik.io/plugins/60f1c49766d99f9d9f36c4ae/max-mind-geo-ip-2
Do you want to request a feature or report a bug?
Feature
What did you expect to see?
Currently we are running a lot of NGINX behind Traefik and all of those needs to check the users IP Addresses for Country, Region and City. This requires a lot of maintenance and file management and of course the work needs to be done at a lot of places.
A better approach would be to have Traefik handling this and forwarding those information as a header. This would reduce disk usage, maintenance and of course disk reads.
There is a GoLang Package for IP Lookup in a MaxMind Database that could be used: https://github.com/oschwald/geoip2-golang
Thanks for your time!