geoblock icon indicating copy to clipboard operation
geoblock copied to clipboard

[Feature Request]: Persistent IP Country Cache Across Traefik Restarts

Open radh21301 opened this issue 7 months ago • 3 comments

I might be mistaken, but I don’t see where the plugin caches IP country data. Since I restart Traefik daily as part of a backup process, it seems like the plugin rebuilds the cache from scratch each time.

If that’s the case, it might impact performance or response time right after a restart.

radh21301 avatar May 19 '25 23:05 radh21301

I think it would be very useful of having a local DB - not just a cache. Something like the maxmind IP database which works very well with pfblockerng.

rwjack avatar Oct 13 '25 10:10 rwjack

I am currently working on in: #99

PascalMinder avatar Oct 25 '25 08:10 PascalMinder

Do you think in that case, that it would just be easier to use the maxmind IP db which could be downloaded to the machine, so no outbound requests are required at all in order to get IP geoloc?

EDIT: Why I'm rambling on about this - because every time an IP requests a resource, and the IP is not cached, the presence of said IP would be leaked to an external service (geoJS) - instead of just having the plugin look up the geo location from a local db.

rwjack avatar Oct 25 '25 12:10 rwjack