Forum Discussion
millencol1n_619
Nimbostratus
Dec 28, 2009Terminate TCP Sessions
Hi,
is there a way to actively terminate tcp sessions on the f5.
i have the following scenario:
2 nodes, each listening on port X
all traffic should be sent...
millencol1n_619
Nimbostratus
Dec 29, 2009i applied the following irule to the virtual server
when RULE_INIT {
set ::count 0
}
when CLIENT_ACCEPTED {
if { [active_members pool_a] > 0 } {
pool pool_a
log local0. "primary active"
if { $::count == 1 } {
log "clean sessions"
set ::count 0 }
} else {
pool pool_b
log local0. "secondary active"
set ::count 1
}
}
when LB_FAILED {
pool pool_b
set ::count 1
log local0. "Selected member: [LB::server addr]"
}
on the bigip itself i listen for the string 'clean sessions' in the ltm log, which triggers the bigpipe command as descibed in the solution.
cheers
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