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.
Examples¶
when CLIENT_ACCEPTED {
set clientIP [IP::client_addr]
}
when SERVER_CONNECTED {
log local0. "Client IP: $clientIP - LSN Persistence: [LSN::persistence-entry get $clientIP]"
}