IP:local_addr()
For the frontend, it returns the IP address of the virtual server that the client is connected to. For the backend, it returns the incoming interface IP address of the return packet.
Syntax
sip=IP:local_addr()
Arguments
N/A
Events
All events except: CLIENTSSL_RENEGOTIATE, RULE_INIT, PERSISTENCE, POST_PERSIST, VS_LISTENER_BIND, COOKIE_BAKE, SERVER_BEFORE_CONNECT.
Example
when SERVERSSL_HANDSHAKE {
cip=IP:client_addr()
lip=IP:local_addr()
sip=IP:server_addr()
rip=IP:remote_addr()
cp=IP:client_port()
lp=IP:local_port()
sp=IP:server_port()
rp=IP:remote_port()
sipv=IP:server_ip_ver();
cipv=IP:client_ip_ver();
debug("in server ssl with remote addr %s:%s client %s:%s, local %s:%s, server %s:%s, ip version %s:%s\n", rip, rp, cip, cp, lip,lp, sip, sp, sipv, cipv)
}}
Supported Version
FortiADC version 5.0.x and later.