HTTP:local_addr()
For HTTP_REQUEST, returns the IP address of the virtual server the client is connected to; for HTTP_RESPONSE, returns the incoming interface IP address of the return packet.
Syntax
HTTP:local_addr();
Arguments
N/A
Events
Applicable in the following events:
-
PERSISTENCE
-
POST_PERSIST
-
BEFORE_AUTH
-
HTTP_DATA_REQUEST
-
HTTP_DATA_RESPONSE
-
HTTP_REQUEST
-
HTTP_RESPONSE
-
WAF_REQUEST_ATTACK_DETECTED
-
WAF_REQUEST_BEFORE_SCAN
-
WAF_RESPONSE_ATTACK_DETECTED
-
WAF_RESPONSE_BEFORE_SCAN
Example
when HTTP_REQUEST {
lip = HTTP:local_addr()
}
Supported Version
FortiADC version 4.6.x and later.