Hi
I have tried this
when CLIENT_DATA {
set bdata1 [binary format ccccc 8 6 10 12 1]
set bdata2 [binary format ccccc 8 6 10 12 2]
if {[UDP::payload[]] contains $bdata1 } {
log local0. "use POOL1"
pool POOL1
}
elseif {[UDP::payload[]] contains $bdata2 } {
log local0. "use POOL2"
pool POOL2
}
}
However, I observed two problems.
Problem 1, from the /var/log/ltm, I got
Mar 26 18:40:53 tmm tmm[1571]: Rule FIP_route1 : use POOL2
Mar 26 18:40:53 tmm tmm[1571]: 01220001:3: TCL error: FIP_route1 - Address in use (line 9) invoked from within "pool POOL2"
Mar 26 18:41:01 tmm tmm[1571]: Rule FIP_route1 : use POOL1
Mar 26 18:41:01 tmm tmm[1571]: 01220001:3: TCL error: FIP_route1 - Address in use (line 9) invoked from within "pool POOL1"
Problem 2,
although the log show the correct pool is used, but the real packet is not route to the correct pool.
I cannot figure out the problem. please help!
rk