Irule to insert SNI based on Pool member
Hi
I have following Irule which inserts SNI based on Pool member but Pool member IP is changing so i created FQDN object but unable to insert SNI using fqdn,
Can you help me in creating irule or other way to insert SNI based on backend pool member which is fqdn not static IP.
when LB_SELECTED {
log local0. "LB_SELECTED: Connected to [LB::server addr]"
switch [LB::server addr] {
"10.1.1.1" {
set sni_value [getfield abc.com ":" 1]
}
}
}
when SERVERSSL_CLIENTHELLO_SEND {
log local0. "SERVERSSL_CLIENTHELLO_SEND: Setting SNI to $sni_value"
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]
}
Thanks
senthil