Hi,
The basic command you'll need will be :
TCP::collect and TCP::payload: they will give you the capability to analize network packets:
Click here,
Click here
persist uit to create persistency on the string you want to make persistency on:
Click here
when CLIENT_ACCEPTED {
TCP::collect 44
}
when CLIENT_DATA {
set ConStr [TCP::payload 44]
set SessionID [substr [getfield $ConStr "@" 2] 0 " CHID" ]
log local0.info $SessionID
if { $SessionID equals "" } {
No SessionID, just load balance as usual
log local0.info "No session ID, load balancing the connection."
pool YOUR_DEFAULT_POOL_NAME
} else {
All clients with this SessionID go to this server
timeout is 120 seconds
persist uie $SessionID 120
}
}