SSL redirection from HTTPS to 8443

Hi all,

I’m experiencing an issue this an URL redirection. I would like to redirect client request from https://foobar.com to https://foobar.com:8443/customuri

I have created two VS with SSL termination on the F5.

On the VS for HTTPS there is no pool associated to the VS just an iRule for the redirection. The iRule is the following :

when HTTP_REQUEST {[
    [HTTP::redirect "https://foobar.com:8443/customuri"]]
}

When using a browser, i just got a blank page but with curl i have more details about the issue :

SSL read: error:00000000:lib(0):func(0):reason(0), errno 104

Futhermore, when i’m checking in the /var/log/ltm, i have also the following message :

err tmm2[16953]: 01220001:3: TCL error: /Common/URL_Redirect - invalid command name “” while executing "[HYPERLINK “http::redirect"HTTP::redirect “https://foobar.com:8443/customuri”]”

I have also an HTTP VS with no pool and the same iRule and it’s working just fine.

Is anyone have an idea of what is wrong ?

Thank you

Braces are useless…

when HTTP_REQUEST {
    HTTP::redirect "https://foobar.com:8443/customuri"
}

Hello Stanislas,

Indeed, i removed the braces but i still have the issue.

Any idea ?

Do you have an HTTP profile assigned to the HTTPS VIP with this iRule?

Hello Kevin,

Yes, i have an HTTP profile associated to the VIP.

So just to clarify, the iRule syntax that Stanislas provided doesn’t work? It’s syntactically correct.

Hello Kevin,

The iRule is syntactically correct but i still that the same behavior as mentioned in my first post.

Do you have a separate VIP setup for https://foobar.com:8443?

Hello Brad,

Yes i have.

I have actually 3 separated VS on the same IP adress :

  • HTTP : No pool associated, irule redirection to the VS HTTPS/8443
  • HTTPS : No pool associated, irule redirection to the VS HTTPS/8443
  • HTTPS/8443 : Pool with the server

Hi,

your https virtual server configuration must be the same as HTTP virtual server except clientssl profile enabled.

Hello Stanislas,

They are actually like that.

I’m just wondering if the issue is not related to the SSL itself because of the error message that i have.

Is it actually possible to make an SSL Termination on the F5 with no pool associated ?

Is it actually possible to make an SSL Termination on the F5 with no pool associated ?

Of course it is. If you think it might be an SSL issue, do the following:

  1. Add a log statement at the top of your HTTP_REQUEST event. Do you see this log message when you test? If you don’t then there’s a good chance a lower layer is causing an issue.

  2. Enable debug logging for SSL and/or fire up ssldump on the client side of the F5 and see what happens during the SSL handshake.