XLAT::src_nat_valid_range¶
Description¶
This iRules command returns a list of valid source-translation
endpoint ranges. This command must be called every time a new
connection/listener needs to be created to retrieve the valid source
translation information. This data must not be cached. Only the
source-translation address used by the parent with a valid port-range
is returned, not all of the endpoints in the source-translation
object/pool. In PBA mode multiple source-translation addresses and
port-ranges can be returned if the client has multiple active blocks.
For e.g. { {address-1 start-port end-port} {address-2 start-port
end-port} …}
Examples¶
when SA_PICKED {
set sa_list [XLAT::src_nat_valid_range]
foreach sa $sa_list {
log local0. "address=[lindex $sa 0] port-start=[lindex $sa 1] port-end=[lindex $sa 2]"
}
}