Bill_95597
Jan 29, 2013Nimbostratus
Capture client IP and redirect to virtual website - no SSL profile
I am moving all certificates off the LTM3900. This eliminates the use of ssl and http profiles. I have iRules that currently use http_request to get ip and replace http header.
Now I can use CLIENT ACCEPT to get the ip. I cannot replace anything in the HTTP Header as that will require http profiles. I can redirect to a web site but CLIENT ACCEPT and HTTP: Redirect don't work together. I also need to pass the client ip to the webserver. I cannot use x-forward. Any help here is appreciated.
I'm looking at something simple like this: This is just a sample of what I am rying to accomplish. If there is a better way, please let me know.
when CLIENT_ACCEPTED {
if { [matchclass [IP::client_addr] equals $::ipaddresses] } {
HTTP::redirect https://www.website.com
log "Selected Site www.website.com"
} else {pool Test_Apps
log "Selected pool is Test_Appt"}
}