Forum Discussion
jwhitepnv_12764
Nimbostratus
Nov 10, 2004Rule to support HTTP and HTTPS in the same VIP?
I have a legacy application that uses http over port 443 (no encryption) and I want to add HTTPS on that same IP and port. Can I create a rule that will listen for something like the Client SSL Hello and if it's there, complete the SSL transaction and send requests back to a pool in support of the new users. Then if it's not there just send traffic back to the same pool unencrypted to maintain support for legacy users?
Thanks for your help in advance,
JWhite
- bl0ndie_127134Historic F5 AccountYes, BigIP gives you the ability to inspect the request data and selectively enable/disable SSL encryption. In this example, we check to see if the first 5 bytes of data matches the start of some of the well known HTTP requests and use that information to enable or disable SSL.
class http_methods { "GET” “POST” “HEAD” “PUT” } when CLIENT_ACCEPTED { TCP::collect 5 } when CLIENT_DATA { if { [matchclass [TCP::payload] starts_with $::http_methods] } { SSL::disable } }
- rapmaster_c_127Historic F5 AccountAnother thing to note is that this behaviour should in fact be supported without the need to write a rule. The command:
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