RobS
Feb 07, 2018Altostratus
Redirect to pool member based on URI with persistence
We are implementing Kronos 8 with SSL offloading on our LTM. The SSL offload options in Kronos forces all traffic through the LTM so our Kronos admin can no longer hit the application directly on the individual servers. To accomplish this I need to direct traffic directly to the pool member based on URI. I also need to append /wfc/logon to all URIs. I have built an iRule based on examples I have found here, but it doesn't work correctly. It lands on the initial logon page correctly, but after the logon doesn't persist to the pool member.
Process I am trying to accomplish:
- http://kronos.xxx.edu/ap1 -> https://kronos.xxx.edu/wfc/logon on pool member 1
- http://kronos.xxx.edu/ap2 -> https://kronos.xxx.edu/wfc/logon on pool member 2
-
http://kronos.xxx.edu/ -> https://kronos.xxx.edu/wfc/logon default LB for clients
Allow server selection via uri when HTTP_REQUEST { if {[HTTP::uri] contains "ap1" } { HTTP::uri "/wfc/logon" pool Kronos member 192.168.1.121 80 } elseif {[HTTP::uri] contains "ap2"} { HTTP::uri "/wfc/logon" pool Kronos member 192.168.1.122 80 } elseif {[HTTP::uri] eq "/"} { HTTP::uri "/wfc/logon" pool Kronos } }
Any suggestions are greatly appreciated.