For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Bob_10976's avatar
Bob_10976
Icon for Nimbostratus rankNimbostratus
Jul 11, 2011

Help with HTTP redirect in ALL directions

Hello all,

We have been using the standard HTTP redirect irule, (posted below) that comes with our LTM, ver 10.2.0, for sometime now. However I'm being told now that this not only needs to be applied to incoming traffic, but internal traffic coming from the server as well. Basically I need the HTTP redirect iRule to work for all directions no matter where the request is coming from.

Currently we setup two VIPs, one http and the other https. The LTM acts as the SSL offload for a few Apps, the traffic on the backend to the server is done over http. We simply use the http redirect to https.

Should I simply apply this iRule to my https VIP as well or is there a better way to redirect internal traffic to use HTTPS?


when HTTP_REQUEST {
if { [HTTP::host] equals "" } {
reject
    }
}
Thanks,
Bob

12 Replies

  • Posted By Colin Walker on 07/11/2011 10:01 AM

     

    Okay, that makes more sense. :)

     

     

    Now, what is it you want to do for requests bound from the internal network to the outside world? Do you really want to force all of those to HTTPS?

     

     

    Colin

     

     

    Hi Colin

     

     

    Could you please post the irule that force all internal to external http to https

     

     

    Thx