Forum Discussion
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.
- can't help you with exact code, but there are examples around of checking ip source and with that you could choose to either redirect to https or not. it helps if your internal servers are in a clearly defined subnet.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects