Tyler_Brown_949
Oct 19, 2015Nimbostratus
iRule to Extract and Repsond back with client IP
All,
I've got the following iRule setup that's being used as a health check for some of our clients. Right now the text we reply back with is a basic static value "TestOk". I'm wondering if its possible to something more dynamic where we extract the IP address of the client and respond back with it as the value, but so far I haven't had any luck. I've looked around here for a similar topic, but haven't found anything yet.
when CLIENT_ACCEPTED { if {[active_members client-443-pool-01] < 1}{ reject } }
when HTTP_REQUEST {
Look for a URI If found send back an HTTP 200 if { [HTTP::uri] equals "/about/health/status" } { Send a 200 response with data HTTP::respond 200 "X-Responce" "TestOk" } else { drop } }