Skip to content

Releases

v0.2.0

Choose a tag to compare

@mateen993 mateen993 released this 23 Nov 12:39
3d5e933

Supports version 2 of the IPGeolocation.io Residential Proxy database, which lists every provider seen on a range, and adds proxy activity counts.

Install

luarocks install kong-plugin-ipgeolocation 0.2.0

Or install the attached rock with luarocks install kong-plugin-ipgeolocation-0.2.0-1.all.rock, then add ipgeolocation to Kong's plugins setting. See the README for Docker and Kubernetes.

Fixed

  • Residential Proxy Database version 2 renamed proxy_provider to the proxy_providers list. The plugin
    now reads it: residential_proxy_provider holds every provider, proxy_provider falls back to it, and
    is_residential_proxy is true again for addresses that are only in a version 2 file. Version 1 files
    still work.

Added

  • proxy_days_seen_7d, proxy_days_seen_30d and proxy_provider_count_30d (headers
    X-IPGeo-Proxy-Days-Seen-7d, X-IPGeo-Proxy-Days-Seen-30d, X-IPGeo-Proxy-Provider-Count-30d), from
    the Security Database or Residential Proxy Database version 2. They are in the full preset.

Changed

  • residential_proxy_provider is a list field, since version 2 files can name several providers.

v0.1.0

Choose a tag to compare

@mateen993 mateen993 released this 05 Oct 09:06
ed23f72

First release of the IPGeolocation.io plugin for Kong Gateway: geo-blocking, VPN, proxy and Tor detection, and IP intelligence headers from local MMDB databases, with no API calls on the request path.

Install

luarocks install kong-plugin-ipgeolocation 0.1.0

Or install the attached rock with luarocks install kong-plugin-ipgeolocation-0.1.0-1.all.rock, then add ipgeolocation to Kong's plugins setting. See the README for Docker and Kubernetes.

Added

  • Kong Gateway plugin ipgeolocation: IP intelligence and security from IPGeolocation.io MMDB databases,
    with no network calls on the request path.
  • Pure LuaJIT, memory-mapped MMDB reader with bounds checks, pointer and depth limits and per-lookup work
    budgets; supports 24, 28 and 32-bit records, IPv4 and IPv6 trees and files larger than 2 GiB.
  • Support for the Location (Standard, Advance), Country, ISP, ASN (Lite, Extended), Company, Security,
    Hosting, Residential Proxy and Abuse Contact databases and the combined products; several databases
    layer per field.
  • 85 fields with X-IPGeo-* headers and the none, minimal, standard and full presets shared with
    the IPGeolocation.io Traefik plugin; custom header names; true_false or one_zero booleans; 12
    languages.
  • Removal of every client-supplied X-IPGeo-* header (any case, underscores) and of custom header names.
  • Security policy: country, continent and ASN allow and block lists; Tor, VPN, proxy, relay, residential
    proxy, anonymous, known attacker, bot (sparing known good bots), spam, cloud provider and corporate
    gateway flags; threat score threshold; exemptions; dry run; configurable status code and message;
    fail_open.
  • Global-instance enrichment in the rewrite phase, so routes can match on enrichment headers.
  • kong.ctx.shared.ipgeolocation and optional log serializer output for other plugins.
  • Database loading in configure, retry of missing databases, optional validated refresh
    (database_refresh_interval), warnings on in-place modification.
  • Unit, integration (Pongo) and end-to-end tests; benchmarks; a reader cross-check against
    python-maxminddb; examples for DB-less, Docker and Kubernetes; a database updater.