ltm rule command TCP keepalive
iRule(1) BIG-IP TMSH Manual iRule(1)
TCP::keepalive
Set/Get the TCP Keep-Alive Interval.
SYNOPSIS
TCP::keepalive (KEEP_ALIVE_INTERVAL)?
DESCRIPTION
Sets or gets the number of seconds before BIG-IP sends a keep-alive packet on a TCP connection with no traffic. A value of
zero indicates no keep-alive packet should be sent.
Syntax
TCP::keepalive []
RETURN VALUE
TCP::keepalive without an argument returns the keep-alive interval value of a TCP connection.
VALID DURING
ANY_EVENT
EXAMPLES
when SERVER_CONNECTED {
log local0. "Client: [client_addr]:[client_port] - Server: [server_addr]:[server_port]."
# Set server-side keep-alive interval to 60 seconds.
TCP::keepalive 60
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-16.1.0 --First introduced the command.
BIG-IP 2022-04-12 iRule(1)