Skip to main content
Feedback

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 nameTypeField ValueRequired/OptionalDescription
Processing AdapterStringcom.mashery.proxy.customer.generic.ipblocker-processorRequiredAdapter used to block API requests according to the configured Subnet, IP list, or IP range.
Perform Pre-processingBooleanEnabled / DisabledRequiredWhen 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—OptionalSpecifies the input data made available for pre-processing.
String

blocked_ip_range: <n.n.n.0-n.n.n.128>

OptionalSpecify IP ranges using hyphen format (e.g., 192.168.1.0-192.168.1.128). Multiple ranges can be comma-separated.
String

blocked_ip_list: <n.n.n.0,n.n.n.128>

OptionalSpecify individual IPs or IP ranges comma-separated (e.g., 192.168.1.0,192.168.1.1,192.168.1.128).
Boolean

keep_client_ip_as_source: <true or false>

OptionalThis 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:

On this Page