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, ...
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
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