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.

Configuration

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 = "asn.rspamd.com";
  ip6 = "asn6.rspamd.com";
}
# If defined, insert symbol with lookup results
symbol = "ASN";