Virtual Server responds to health checks

Hi. I currently have a configuration where a device upstream from my BIG-IP 6400 is doing health checks against the BIG-IP. I also want the health checks to fail if my virtual server is showing down. However, my experience with the monitors show that even if the virt is down the BIG-IP will still respond to the health check on that virt unless the BIG-IP itself is down. Therefore, I’m attempting to write an iRule to redirect the upstream health check in order to somehow cause a failure. I am wondering if anyone else has run into this problem or if any templates exist that could assist me in this effort.

Matt

This works quite well on new connection requests:

when CLIENT_ACCEPTED {
  if { [active_members MyPool] == 0 } {
    discard
  }
}

We use this for our Global load balancer communication to our BigIP (it is not an F5 product, yet)

Enabling “Action on Service Down” to “Reject” for the pool (in Pool/Properties / Configuration: Advanced) will cause LTM to send a RST in response to requests if all servers in the pool are DOWN.

I think that may accomplish your goal without a rule…

/deb

From my testing, using REJECT on service down will not reselect other available members, which is why I ended up with a rule.