Forum Discussion
Fernas
Nimbostratus
Feb 28, 2024Manipulating Hostname and SNI
Hello everyone, I have this situation: I need to access website (sitea.com), then i need the F5 replace the host and SNI by siteb.com, is it possible? We are trying to use an iRule to man...
Aswin_mk
MVP
Jul 10, 2024Try below if its a https
when CLIENTSSL_HANDSHAKE {
if { [SSL::extensions exists -type 0x00] } {
# Replace SNI with siteb.com
SSL::extensions insert -type 0x00 -value "siteb.com"
}
}
when HTTP_REQUEST {
if { [HTTP::host] eq "sitea.com" } {
# Replace the Host header with siteb.com
HTTP::header replace "Host" "siteb.com"
}
}
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