Forum Discussion
Faruk_AYDIN
Apr 30, 2018Nimbostratus
in 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"
}
}