Forum Discussion
eanderson6_2759
Nimbostratus
Oct 30, 2012Redirecting Traffic Using iRules
Here is the goal.
Traffic from 192.168.1.0 to LTM --> http://example.com/(rest of the url)
Traffic from anywhere else to LTM --> pool_A
Here is my attempt so far.
when HTT...
What_Lies_Bene1
Cirrostratus
Oct 30, 2012Thanks Mohamed, so it would look like this;
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr] equals 192.168.1.0/24] } {
HTTP::redirect "http://example.com/[HTTP::uri]" }
else {
pool my_pool }
}
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