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, 2014Hello Kevin & All,
So after some work with the developers they are now sending the entity name in the second TCP socket. However my new dilema is that I need the irule to collect a the entity between particular start/end delimiters in the first socket and in the 2nd socket the start/end delimiters will be completely different.
Here is my current code, its obviously missing that logic... I am thinking along the lines that if the source IP is already connected then set the entityID2 and use findstr as such:
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]
set entityID [findstr $payload "@" 1 ","]
set entity [findstr $payload "@" 1 "null"]
log local0. "Here is the first TCP socket entity $entityID: $entityID"
log local0. "Here is the second TCP socket entity $entityID2: $entityID2"
pool xxx_Pool
persist uie $entityID 1800
persist uie $entityID2 1800
log local0. "xxxx Entity Session routing $entityID and setting persistence"
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