LSN::persistence-entry

Description

Create or lookup LSN translation address. Those commands are linked to CGNAT module introduced in 11.3. You need to license and provision this module to use this command.

Syntax

LSN::persistence-entry create [-override] <client_address>[:<client_port>] [<translation_address>[:<translation_port>]]
LSN::persistence-entry get <client_address>[:<client_port>]

v11.4+
LSN::persistence-entry create [-override] <lsn_pool>  <client_address>[:<port>] <translation_address>[:<port>]]  [timeout]

v11.5+
LSN::persistence-entry delete <client_address>

LSN::persistence-entry create

  • Create a specific translation entry. Normally, this is occurs when a client initiates outbound traffic.
  • If the translation address is not provided, then the address is allocated based on the method configured on the LSN pool.

LSN::persistence-entry get

  • Retrieve an existing translation record for the identified client.
  • The Persistence Mode must be set to Address or Address and Port in the LSN Pool Configuration.

LSN::persistence-entry delete <client_address>

  • Deletes a specific client’s translation entry.

Examples

when CLIENT_ACCEPTED {
set clientIP [IP::client_addr]
}
when SERVER_CONNECTED {
log local0. "Client IP: $clientIP - LSN Persistence: [LSN::persistence-entry get $clientIP]"
}

Log generated

Mar 20 13:36:35 bigip2 info tmm9506: Rule /Common/LSNiRule : Client IP: 10.100.30.252 - LSN Persistence: 10.100.30.136:36753