LB::snat¶
Description¶
Syntax¶
LB::snat
LB::snat¶
- Returns a TCL list based on the current connection’s SNAT configuration. The possible values seem to be ‘none’, ‘automap’, ‘snatpool <snat_pool_name>, ‘snat <IP address>’. The ‘snat <IP address>’ output only seems to be logged when snat is explicitly set using ‘snat <IP address>’ in an iRule.
Examples¶
when CLIENT_ACCEPTED {
# Check if SNAT is enabled on the VIP
if {[LB::snat] eq "none"}{
log local0. "Snat disabled on [virtual name]"
} else {
log local0. "Snat enabled on [virtual name]. Currently set to [LB::snat]"
}
}