Forum Discussion
jbudi
Jan 06, 2021Nimbostratus
redirect to other url based on sni extension server name
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
Samir
Jan 07, 2021MVP
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
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