IP Blocking Policy Configuration Values
Updated
Configuration Values
The following configuration values can be defined while configuring the IP Blocking Policy on the Call Transformation page:
| Field name | Type | Field Value | Required/Optional | Description |
|---|---|---|---|---|
| Processing Adapter | String | com.mashery.proxy.customer.generic.ipblocker-processor | Required | Adapter used to block API requests according to the configured Subnet, IP list, or IP range. |
| Perform Pre-processing | Boolean | Enabled / Disabled | Required | When enabled, the policy fetches the denylisted IPs from pre-input and authenticates the requesting IP before the request is forwarded to the backend. The IP Blocking policy supports only pre-processing of API requests. |
| Data to make available for pre-processing (PreInput Value) | Map | — | Optional | Specifies the input data made available for pre-processing. |
| String |
| Optional | Specify IP ranges using hyphen format (e.g., 192.168.1.0-192.168.1.128). Multiple ranges can be comma-separated. | |
| String |
| Optional | Specify individual IPs or IP ranges comma-separated (e.g., 192.168.1.0,192.168.1.1,192.168.1.128). | |
| Boolean |
| Optional | This is an optional field. When set to true, this flag overrides default behavior to select IP addresses of intermediaries, such as the proxy server that is closest to the Cloud API Management stack. |
Examples
Data to make available for pre-processing
The following is an example value for the Data to make available for pre-processing field.
blocked_ip_range: 123.45.67.0-123.45.67.128
blocked_ip_list: 123.45.67.0,123.45.67.128
keep_client_ip_as_source: false
Configuration Steps
You can configure this policy as a Processor using either of the following UIs. Refer to the following for configuration steps:
- Configuring Call Transformations in Policy UI (Recommended — supports policy picker with inline help and auto-population)
- Configuring Call Transformation in Legacy UI