ltm rule command UDP client port
iRule(1) BIG-IP TMSH Manual iRule(1)
UDP::client_port
Returns the UDP port/service number of a client system.
SYNOPSIS
UDP::client_port
DESCRIPTION
Returns the UDP port/service number of the client system. This command
is equivalent to the command clientside { UDP::remote_port }.
Syntax
UDP::client_port
* Returns the UDP port/service number of the client system.
RETURN VALUE
Returns the UDP port/service number of the client system
VALID DURING
CLIENT_ACCEPTED, CLIENT_CLOSED, CLIENT_DATA, SERVER_CLOSED,
SERVER_CONNECTED, SERVER_DATA, SIP_REQUEST, SIP_REQUEST_SEND,
SIP_RESPONSE, STREAM_MATCHED, UDP_GTM
EXAMPLES
when CLIENT_DATA {
if { [UDP::payload 50] contains "XYZ" } {
pool xyz_servers
persist uie "[IP::client_addr]:[UDP::client_port]" 300
} else {
pool web_servers
}
}
when SIP_REQUEST {
SIP::header insert "Via" "[lindex [split [SIP::via 0] ";"] 0]received=[IP::client_addr]rport=[UDP::client_port][lindex [split [SIP::via 0] ";"] 1]"
SIP::header remove "Via" 1
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-9.0.0 --First introduced the command.
BIG-IP 2017-01-31 iRule(1)