1

Hello is it possible to block or allow certain countries in Nginx Ingress (community). It seems possible on Nginx installed on servers (link) But I want to apply similarly to this on Nginx Ingress.

Tek Nath Acharya
  • 134
  • 1
  • 10
  • Were you able to accomplish this? The selected answer doesn't answer the question for me. It just enables the GeoIP support. – DarkWingDuck Aug 03 '23 at 12:46

1 Answers1

2

That is documented in the user-guide. You need to set --use-geoip2 true and --maxmind-license-key KEY.

Note that geoip is discontinued:

Note: MaxMind legacy databases are discontinued and will not receive updates after 2019-01-02, cf. discontinuation notice. Consider use-geoip2 below.

Henrik Pingel
  • 9,380
  • 2
  • 28
  • 39
  • And how can we block/allow a country? This answer just enables GeoIP support. The user guide doesn't mention how to whitelist or blacklist a country. I think this doesn't answer the question. I also cannot find any answer on the web. – DarkWingDuck Aug 03 '23 at 12:41