jgranieri
May 24, 2011Nimbostratus
irule tcp payload persistence
Here is what is currently working:
I have 2 issues/questions. I cant seem to get logging to work whether I use remote syslog IP and or change local0 ot local7 etc.
2nd question - How do I persistence based on @xxx in below. I was trying to find some examples of persist uie for the string feature but cant seem to find the answer. any help would be appreciated.
Checks TCP Payload 250 bytes and uses a switch to find a match
when CLIENT_DATA {
log local0. "in CLIENT_DATA"
set clientData [TCP::payload 250]
log local0. "Client Data raw: $clientData"
switch -glob $clientData {
"@int3*" {
node 10.35.22.33 9820
log local0. "Entity @int4* being Loadbalanced"
}
"@int4*" { node 10.35.22.32 9820 }
}
TCP::release
}