Forum Discussion
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
- Michael_KoyfmanCirrocumulus
Yes, this most certainly should work. Your iRule is missing HTTP::redirect statement and that should be it
- Ray_Ebersole_13NimbostratusThanks, 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_13NimbostratusThanks, I just implemented it and it is work great, Thanks for the help/!
Recent Discussions
Related Content
* 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