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::detach
pool xxx
persist uie "[IP::client_addr]:[TCP::client_port]"
}
elseif { [TCP::payload] contains "yyy" } {
LB::detach
pool yyy
persist uie "[IP::client_addr]:[TCP::client_port]"
}
elseif { [TCP::payload] contains "zzz" } {
LB::detach
pool zzz
persist uie "[IP::client_addr]:[TCP::client_port]"
}
TCP::release
TCP::collect
}
This pretty much does what I'm looking for, the load balancing to the different types of pools and the persistence. But every time the client comes in with "yyy" the previous TCP connection is cleared and a new connection is established because of the LB::detach. And I need that LB::detach 'cause without that when the packets switch from "xxx" to "yyy" they would still be sent to pool xxx. Is there a way to keep the TCP connection up across the subsequent "yyy" packets?
Thanks in advance.
- Ganesh_Ramamoor
Nimbostratus
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