Forum Discussion

Ray_Ebersole_13's avatar
Ray_Ebersole_13
Icon for Nimbostratus rankNimbostratus
Jan 03, 2014

iRule to redirect traffic to a server

Hi,

 

We have an Educational Office 365 account and the login to it is not extremely easy. We want to have our F5-4200 redirect traffic from an URL users can use directly to the login servers where users can just enter an username and password.

 

I have created an iRule that is working on our old F5-1600, but it is pointed at a pool, which we don't want to do on the new server. We just want the F5 to take the traffic from the published URL to the login URL withouot having to associate it with a pool. Is this possible?

 

Here is what I have written:

 

when HTTP_REQUEST { set o365_hostname [string tolower [HTTP::host]] if {$o365_hostname equals "o365.xxxxxxxxxxx.net"}{ log.local0 "Hostname was redirected. Original name: $o365_hostname" redirect to "https://Very_Long_loginURL[HTTP::uri]" } }

 

  • Yes, this most certainly should work. Your iRule is missing HTTP::redirect statement and that should be it

     

  • Yes, this most certainly should work. Your iRule is missing HTTP::redirect statement and that should be it

     

    • Ray_Ebersole_13's avatar
      Ray_Ebersole_13
      Icon for Nimbostratus rankNimbostratus
      Thanks, I just implemented it and it is work great, Thanks for the help/!
  • Yes, this most certainly should work. Your iRule is missing HTTP::redirect statement and that should be it

     

    • Ray_Ebersole_13's avatar
      Ray_Ebersole_13
      Icon for Nimbostratus rankNimbostratus
      Thanks, I just implemented it and it is work great, Thanks for the help/!