Forum Discussion
gGnome_32510
Nimbostratus
Jan 13, 2010Redirection
We are new to F5, tcl, iRules... the works, so I apologize if this is an easy one. I have several SSL sites (F5 is the endpoint) that are secured with *.domain.com cerfificates, and an iRule that red...
gGnome_32510
Nimbostratus
Jan 13, 2010Our BigIP is sitting in the dmz, so until now I was using one iRule to route the traffic based on the target IP coming from the firewall, and a second iRule to redirect the http requests to https:
iRule_1
=======
when HTTP_REQUEST { if { [IP::addr [IP::remote_addr] equals 1.1.1.1] }
{ HTTP::redirect "http://host.example.com" }
elseif { [IP::addr [IP::remote_addr] equals 1.1.1.2] }
{ HTTP::redirect "http://host.another.com" }
elseif { [IP::addr [IP::remote_addr] equals 1.1.1.3] }
{ HTTP::redirect "http://host.yetanother.com" }
}
____________________________________________
iRule_2
========
when HTTP_REQUEST {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
The LTM is BIG-IP 9.3.1 Build 37.1
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
