Forum Discussion
rahtoll_74678
Sep 08, 2012Nimbostratus
Check for String in TCP Payload from a specific position
Hi Guys,
I’m new here, as well as with F5 systems. Though basic load balancing is okay, I have this requirement where I believe iRules would be of big help. From the TCP payload, ...
hooleylist
Sep 11, 2012Cirrostratus
Here's what I'm thinking could work for your scenario:
when CLIENT_ACCEPTED {
Collect at least 65 bytes if the bytes to parse are 59-65
TCP::collect 65
}
when CLIENT_DATA {
use pool2 by default
pool Pool2
Start reading at the 59th byte and save 6 characters to $match
if {[binary scan $bytes_raw x59a6 match] == 1}{
log local0. "Matched $match"
if { $match eq "000001" } {
pool Pool1
}
}
TCP::release
}
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects