Forum Discussion
MuthannaMP_3382
Nimbostratus
Apr 25, 2019A virtual server which caters to both HTTPS and plain TCP traffic on the same port.
Hi
Need help creating a Virtual Server which caters to both HTTPS and plain TCP traffic on the same port.
The HTTPS would have to be directed to a pool say pool_1 and the plain TCP traffic would...
Stanislas_Piro2
Cumulonimbus
Apr 26, 2019Try this code:
when CLIENT_ACCEPTED {
SSL::disable
TCP::collect
}
when CLIENT_DATA {
Store TCP Payload up to 2^14 + 5 bytes (Handshake length is up to 2^14)
set payload [TCP::payload 16389]
set payloadlen [TCP::payload length]
if { [binary scan $payload cH4Scx3H4x32c tls_record_content_type tls_version tls_recordlen tls_handshake_action tls_handshake_version tls_handshake_sessidlen] == 6 && \
($tls_record_content_type == 22) && \
([string match {030[1-3]} $tls_version]) && \
($tls_handshake_action == 1) && \
($payloadlen == $tls_recordlen+5)} {
SSL::enable
}
TCP::release
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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