Forum Discussion
Ganesh_Ramamoor
Nimbostratus
Jun 09, 2006TCP iRule help
Thanks to you guys' help, I have this iRule:
when CLIENT_ACCEPTED {
TCP::collect
}
when CLIENT_DATA {
if { [TCP::payload] contains "xxx" } {
LB::det...
Ganesh_Ramamoor
Nimbostratus
Jun 09, 2006
Yes that worked, with one slight change of picking the pool only after a detach, as shown below. Thanks for your help.
The LB::server and the LB::detach are per tcp connection, it appears, which is good, 'cause I was a little concerned about that. I tried this with 2/3 simultaneous clients and it seem to work fine.
when CLIENT_ACCEPTED {
TCP::collect
}
when CLIENT_DATA {
set poolname "[LB::server pool]"
if { [TCP::payload] contains "xxx" } {
if { $poolname ne "xxx" } {
LB::detach
pool xxx
}
}
elseif { [TCP::payload] contains "yyy" } {
if { $poolname ne "yyy" } {
LB::detach
pool yyy
}
}
TCP::release
TCP::collect
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
