C_Baker_17806
Mar 01, 2012Nimbostratus
http redirect iRule - Exclude internal traffic
I tried doing some searches and didn't find anything, and am fairly new to working with F5 hardware.
What I have is a Big-IP 9.4.8 Build 355.0 (2 actually in HA setup) that currently has an iRule that redirects all traffic from http to https. What we want to do is have one or more servers internally connect through the same pool, yet have http not https connection. At this time, I just need to make sure all internal traffic will not be redirect to https; in the future we may want to lock it down to a subset of servers.
Current iRule is:
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
set host [string tolower [HTTP::host]]
HTTP::redirect https://server.domain.com
}
Any assistance would be greatly appreciated. Unfortunately, due to a time constraint I need to have this resolved within the next 2 or 3 days.