Forum Discussion
Robert_Pagano_7
Nimbostratus
Sep 25, 2006how to ensure that 'client' requests which orginate from a load-balanced server are sent to itself by the load balancer
I'm not sure I understand why our apps people need this but here it is...
We have a pool of two servers (let's call them 'S1' and 'S2') which support an 'all-ports' virtual server ('VS'). ...
Deb_Allen_18
Sep 25, 2006Historic F5 Account
Hi Rob -
Here's a rule that will:
1) send "normal" traffic to the pool
2) sends "bounceback requests" (from real server to virtual server) to itself if it is UP
3) sends bounceback requests to the pool if the requested server is not UP.
when CLIENT_ACCEPTED {
if { [matchclass [IP::remote_addr] equals $::serverIPs] }{
if { [LB::status pool myPool member [IP::remote_addr] 23] ne "down"}{
pool myPool member [IP::remote_addr] 23
}
} else {
pool myPool
}
}(substitute the real pool name and the correct port if it is not 23).Create a class (data group list) of IP addresses called serverIPs which contains the IP addressed of the servers in the pool, and apply the iRule to the virtual server.
HTH
/deb
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
