Forum Discussion
HS_34947
Feb 20, 2011Nimbostratus
HTTP to HTTPS and back HTTPS to HTTP
Hello Guys,
I am new in iRules so sorry for bothering you with questions.
My example :- HTTP server (1)<-- -->F5 <-- --> HTTPS server (2)
The F5 when it gets the HTTP RESPONSE from server (1) it should convert it to HTTPS so server (2) can analyze by the iRule
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
My PROBLEM When the F5 gets the RESPONSE from server (2) as HTTPS, it should convert it back to HTTP so server (1) can analyze
How can we do this step? And should we separate these 2 steps in different iRule or in one iRule?
Thanks ,
H.S
- Chris_MillerAltostratusSo I understand your flow, HTTP Server 1 is basically the client making the request and does so over HTTP. The F5 should encrypt that traffic and send it over HTTPS to server 2? Then, when server 2 responds, the F5 should decrypt the traffic and send it over HTTP to Server 1?
- HS_34947NimbostratusYes, exactly ..
- Chris_MillerAltostratusAre you currently using any sort of SSL profile on your Virtual Server? A ServerSSL profile? If not, try using the default one.
- HS_34947NimbostratusI am using a HTTP profile for other tools, and if i used the default one, how this can help?
- Chris_MillerAltostratusPosted By HS on 02/21/2011 12:53 AM
If using a Standard Virtual Server, you have the following profiles:
Protocol Profile (Client)
Protocol Profile (Server)
OneConnect
HTTP
FTP
Stream
XML
SSL (Client)
SSL (Server)
Not all are required. In this case, I'd like you to change your "SSL Profile (Server) from "None" to "serverssl." That should hopefully encrypt/decrypt the traffic.
- HS_34947Nimbostratusbut this should encrypt http to https and decrypt https back to http?
- Chris_MillerAltostratusPosted By HS on 02/21/2011 06:23 AM
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects