ltm rule command ASM client ip
iRule(1) BIG-IP TMSH Manual iRule(1)
ASM::client_ip
Returns the IP address of the end client that sent the request.
SYNOPSIS
ASM::client_ip
DESCRIPTION
Returns the IP address of the end client that sent the request. Note that this IP address is not necessarily equal to the
address returned by the command IP::client_addr, which is the IP address of the immediate client found in the IP header as
received by BIG-IP. The latter can be a proxy, in which case the end client IP address is extracted from one of the HTTP
headers, typically, X-Forwarded-For.
Syntax
ASM::client_ip
RETURN VALUE
Returns the IP address of the end client that sent the request.
VALID DURING
ASM_REQUEST_BLOCKING, ASM_REQUEST_DONE, ASM_REQUEST_VIOLATION, ASM_RESPONSE_VIOLATION
EXAMPLES
when ASM_REQUEST_DONE {
log local0. "Src IP: [IP::client_addr], End-client IP: [ASM::client_ip]"
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-11.5.0 --First introduced the command.
BIG-IP 2022-04-12 iRule(1)