iRule behavior for HTTP::REDIRECT
Hello,
I have configured the following iRule:
ltm rule /Common/httptohttps { when HTTP_REQUEST {HTTP::redirect https://[HTTP::host][HTTP::uri]} }
It is associated with an HTTP virtual server. Is the expected behavior that it will send a HTTP 302 redirect message back to the client for packets with a destination port set to 80? What happens to the TCP connection established for the HTTP connection in this case? Is the initial TCP connection closed by the client? Will the client create a new TCP connection on port 443 in order to re-send the request as an HTTPS request? Or does the F5 act as a proxy here for the TCP connection? i.e. does it terminate the connection on port 80 and initiate a connection on port 443?
I am relatively new to F5 and would appreciate any help that I can get.
Thanks, Rachit