Skip to main content

msys.dp_config.concurrent_connection_limits

Last updated March 2020

This table determines the behavior with respect to concurrent connection limits.

Find below the sample excerpt included in the dp_config.lua file.

msys.dp_config.concurrent_connection_limits = {
  { check = true,
    mask = "/32",
    limit = 10,
    service = "SMTP",
    honor_whitelist = { "global" },
  },
  { check = true,
    mask = "/24",
    limit = 100,
    service = "SMTP",
    honor_whitelist = { "global" },
  },
  -- System-wide connection limit, don't honor the whitelists here
  { check = true,
    mask = "/0",
    limit = 20000,
    service = "SMTP",
  }
};
msys.dp_config.audit_series = {};

The elements of this configuration table are as follows:

check

Whether or not to use this configuration item.

mask

The CIDR mask to use.

limit

The number of concurrent connections you wish to allow. When this limit is exceeded, the code 421 is issued along with the message connection limit exceeded.

service

The type of service you are using. Typically this will be SMTP.

honor_whitelist

A table listing any applicable whitelists set in the msys.dp_config.whitelist table.

In order to use any of the audit series configuration tables you must include msys.dp_config.audit_series. These configuration tables are only relevant in a cluster configuration.

Was this page helpful?