Forum Discussion
radpat_360084
Nimbostratus
Apr 30, 2018iRule for internal and external traffic
want to send internal client to an internal website and send all other traffic to a customer website. Also Intercept an HTTP 404 message from a pool member and send the client an HTTP redirect instea...
Faruk_AYDIN
Altostratus
Apr 30, 2018in this sample iRule your internal subnet is assumed 10.0.0.0/8.
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr]/8 equals 10.0.0.0] }
{
pool internal_pool
} else {
pool external_pool
}
}
when HTTP_RESPONSE {
if { [HTTP::status] == 404 } {
HTTP::redirect "http://www.anothersite.com/Info.html"
}
}
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
