Skip to content

/AWS1/CL_EL2SOURCEIPCONDCONFIG

Information about a source IP condition.

You can use this condition to route based on the IP address of the source that connects to the load balancer. If a client is behind a proxy, this is the IP address of the proxy not the IP address of the client.

For Application Load Balancers, use Values to specify CIDR ranges. For Network Load Balancers, use IpAddressType to match on the IP address type of the source traffic.

CONSTRUCTOR

IMPORTING

Optional arguments:

it_values TYPE /AWS1/CL_EL2LISTOFSTRING_W=>TT_LISTOFSTRING TT_LISTOFSTRING

The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.

If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use an HTTP header condition.

The total number of values must be less than, or equal to five.

iv_ipaddresstype TYPE /AWS1/EL2SOURCEIPADDRTYPEENUM /AWS1/EL2SOURCEIPADDRTYPEENUM

The IP address type for Network Load Balancers.

The valid values are:

  • ipv4 – IPv4 addresses only.

  • ipv6 – IPv6 addresses only.


Queryable Attributes

Values

The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.

If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use an HTTP header condition.

The total number of values must be less than, or equal to five.

Accessible with the following methods

Method Description
GET_VALUES() Getter for VALUES, with configurable default
ASK_VALUES() Getter for VALUES w/ exceptions if field has no value
HAS_VALUES() Determine if VALUES has a value

IpAddressType

The IP address type for Network Load Balancers.

The valid values are:

  • ipv4 – IPv4 addresses only.

  • ipv6 – IPv6 addresses only.

Accessible with the following methods

Method Description
GET_IPADDRESSTYPE() Getter for IPADDRESSTYPE, with configurable default
ASK_IPADDRESSTYPE() Getter for IPADDRESSTYPE w/ exceptions if field has no value
HAS_IPADDRESSTYPE() Determine if IPADDRESSTYPE has a value