Forum Discussion
Przemyslaw
Nimbostratus
Feb 04, 2021attach SNI to TCP connection
Hello gents, I am struggling with following configuration. Server with JBoss which connects to F5 VS which listens on ports 30004 and 30005 I would like to Connect with JBoss on po...
Feb 04, 2021
Hi Przemyslaw,
Can you try this iRule?
when HTTP_REQUEST {
set sni_value [getfield [HTTP::host] ":" 1]
if { [HTTP::host] ends_with "30004" } {
set sni_value "siteA.com"
}
elseif { [HTTP::host] ends_with "30005" } {
set sni_value "siteB.com"
}
}
when SERVERSSL_CLIENTHELLO_SEND {
SSL::extensions insert [binary format SSScSa* 0 [expr { [set sni_length [string length $sni_value]] + 5 }] [expr { $sni_length + 3 }] 0 $sni_length $sni_value]
}- PrzemyslawFeb 04, 2021
Nimbostratus
Hi Enes,
Thank you for fast reply, I really appreciate it.
Sure I will have a look if it works.
in this event there is HTTP_REQUEST - Will it also work for TCP connection?
I will get back to you after tests.
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
