Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

redirect to other url based on sni extension server name

jbudi
Nimbostratus
Nimbostratus

it is possible to redirect traffic when f5 receive server name in SNI extension ?

 

i have tried using policies but it seems the policies cannot detect the SNI extension.

 

Thanks

3 REPLIES 3

Samir
MVP
MVP

Try something below iRule, which may help you.

when HTTP_REQUEST { 
   log local0.info "SNI name: [SSL::sni name]"
    if { [SSL::sni name] eq "www.yahoo.com" } {
        HTTP::respond 301 Location "https://www.example.com[HTTP::uri]" 
    } 
}

Reference article : https://clouddocs.f5.com/api/irules/SSL__sni.html

jbudi
Nimbostratus
Nimbostratus

I have tried that but the SSL::sni name empty.

I have tried using policies but the polices cannot detected the sni server name

Samir
MVP
MVP

Then you need to check the F5 configurations. Can you capture the packet and see if you are getting Server Name Indication in tcpdump packet.

 

0691T00000BRCqgQAH.png