Forum Discussion
HTTP to HTTPS redirect using I Rule
Hi, Looking for some advice regarding I Rules, I am totally new to this area, So the questions may seem very obvious ! The scenario goes like this:
I have a Big IP LTM and it currently has a VIP configured for client side SSL offloading complete with SSL profile etc, All good so far, What I am looking to achieve is to mop up HTTP requests that are being sent to this VIP, I want to use an I Rule and can see that F5 have kindly packaged one ready to go called _sys_https_redirect, If I create another VIP with the same IP and configure for HTTP and add I Rule _sys_https_redirect will this simply redirect the traffic to the HTTPS VIP ? Or is this wishfull thinking ? Do I also need to add the config hierarchy to the HTTP VIP ie Pool, Node etc ?
Thanks
Ross
6 Replies
- SteveMP
Nimbostratus
Yeah, that's pretty much it. You don't need a pool since it's just redirecting it to your HTTPS Virtual Server.
- nathe
Cirrocumulus
Yes, simply create an HTTP VIP (same IP) and add HTTP Profile and iRule. No need for any other configuration, Pool for example. The traffic will hit the VIP and be redirected immediately.
Rgds
N
- ross_02_143242
Nimbostratus
Many thanks for clearing that up and for responding so quickly.
Thanks and Regards
Ross
- nathe
Cirrocumulus
no probs
- ross_02_143242
Nimbostratus
Another point that I forgot to mention which may be of importance ! My HTTPS VIP port is not configured to the standard port of 443, I have configured it in the 8000 range, Will this have any affect on _sys_https_redirect I Rule ?
Thanks
Ross
- NetworkNerd_135
Nimbostratus
Yes, that would be a problem, since browsers consider HTTPS to be on port 443. A modification to the iRule would be necessary in your case.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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