eanderson6_2759
Oct 30, 2012Nimbostratus
Redirecting 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 HTTP_REQUEST {
if { [[IP::remote_addr] starts_with "192.168.1."] }
{ HTTP::redirect "http://example.com/[HTTP::uri] }
else {pool my_pool}
}
I don't know much about iRules as I am just now learning them, but would love to know what needs to happen. Basically I want to F5 to redirect traffic away from the F5 to another server if it comes from 192.168.1.0/24. If it doesn't come from that address then go to the specified pool.