Forum Discussion
rahtoll_74678
Sep 14, 2012Nimbostratus
Just for update, I have modified the iRule to the one below and so far our simulation tests ended up to be positive and met the desired results! The payload actually starts at x56, so i just attempted this irule initially:
when CLIENT_ACCEPTED {
TCP::collect 65
}
when CLIENT_DATA {
use pool2 by default
pool test_pool2
set mero [TCP::payload 15]
Start reading at the 5th byte and save 6 characters to $match
if {[binary scan $mero x5a6 match] == 1}{
log local0. "Matched $match"
if { $match eq "000001" } {
pool test_pool1
}
}
TCP::release
}
It may require adjustment but hopefully no :) Again thanks for the support!
Lez