Forum Discussion
iRule for non http services
In my case, I am only getting tcp protocol.
Tried below iRule as well.
when CLIENT_ACCEPTED {
if { [TCP::local_port] eq 491 } {
if { [TCP::payload] contains "URI1" } {
pool QA_URI1_491
} elseif { [TCP::payload] contains "URI2" } {
pool QA_URI2_491
}
}
}
ndubey2 In order to do what you want I believe you would have to convert each string to binary and then search for that binary value to make a decision. Sadly I haven't had the opportunity to perform this type of iRule so I don't really have much more direction other than converting the respective strings to binary and making the match that way.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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