XLAT::listen_lifetime

Description

This iRules command sets/gets the listener lifetime. Valid range is between 0 and 31536000 (365 days).

Syntax

XLAT::listen_lifetime <handle> [xlat_lifetime]

Examples

when SERVER_CONNECTED {
    set listener [XLAT::listen 30 {
        proto [IP::protocol]
        bind -allow [serverside {LINK::vlan_id}] -ip [serverside {IP::local_addr}]
        server [IP::client_addr] [expr [TCP::local_port] + 1]
        allow [LB::server addr] 0
    }]
    log local0. "[XLAT::listen_lifetime $listener]"
}