Forum Discussion
jgranieri_42214
Nimbostratus
Jul 01, 2014Load Balancing based off TCP Payload entity
Hello,
I believe I constructed an irule to properly a variable from text captured from two distinct points in the TCP Payload but I am not 100% certain the Irule will is persisting off this entity....
jgranieri
Nimbostratus
Jul 17, 2014I thought about this some more and I think this logic would work. After collecting unecrypted payload if it contained a string then use the findstr parameters in case1 and LB/persist. If the payload contained another string then use the findstr parameters for case 2 and LB/persist the same... Here is a rough draft but I have syntax errors that need sorting....
when CLIENTSSL_HANDSHAKE {
log local0. "[IP::client_addr]:[TCP::client_port]: SSL handshake completed, collecting SSL payload"
SSL::collect
}
when CLIENTSSL_DATA {
set payload [SSL::payload]
if { [SSL::payload] contains "UserID" } {
set entityID [findstr $payload "@" 1 ","]
log local0. "Here is the zzz TCP socket and the entity is $entityID: $entityID"
pool xxxx_Pool
persist uie $entityID 1800 "JEFF" } {
set entityID2 [findstr $payload "@" 1 "."]
log local0. "Here is the JEFF TCP socket and the entity is $entityID2: $entityID2"
pool xxxx_Pool
persist uie $entityID2 1800
SSL::release
}
}
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