Allowing IPs
Last updated: 1 minute read.
IP Allowlist (Middleware)
-
enable_ip_whitelisting
: Enables IPs allowlist1 . When set totrue
, only requests coming from the explicit list of IP addresses defined in (allowed_ips
) are allowed through. -
allowed_ips
: A list of strings that defines the IP addresses (in CIDR notation) that are allowed access via Tyk. This list is explicit and wildcards are currently not supported. e.g.:
{
...
"enable_ip_whitelisting": true,
"allowed_ips": ["12.12.12.12", "12.12.12.13", "12.12.12.14"]
...
}
For more details on CIDR notation, see this Wikipedia entry.
Tyk Operator
Please consult the Tyk Operator supporting documentation for an example of how to configure an IP allow list with Tyk Operator.
-
Allowlist - explicitly allowing access to identified entities. Previously known as whitelist. ↩︎