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 ipnet as mempool variables.


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";