ASN module

ASN module looks up ASN numbers and some related information: namely country code of ASN owner & subnet in which IP is announced and makes these available to other plugins as mempool variables.

The module exports asn, country and ipnet1 as mempool variables available from Lua after prefilters stage.


ASN module is enabled in the default configuration. Settings could be added to /etc/rspamd/local.d/asn.conf.

# Provider: just "rspamd" for now
provider_type = "rspamd";
# Provider-specific configuration
provider_info {
  ip4 = "";
  ip6 = "";
# If defined, insert symbol with lookup results
symbol = "ASN";

1: till version 2.0 as it is a dup of ASN