zhangyuyao_1600
Aug 04, 2016Nimbostratus
iRule can't execute the virtual command when using [clientside {TCP::local_port}]
There is an iRule below :
when CLIENT_ACCEPTED {
if {[IP::addr [IP::client_addr] equals 114.255.174.240] } {
set Destination_Port [clientside {TCP::local_port}]
if {($Destination_Port >= 10069) and ($Destination_Port <= 10124)} {
virtual VS_4809_Troubleshooting_443}
elseif {($Destination_Port >= 11069) and ($Destination_Port <= 11124)} {
virtual VS_4809_Troubleshooting_80}
else { pool pool_4809_Troubleshooting_443}
}
}
Traffic can be distinguished by destination port,but it can't be distributed to specified VS.