Forum Discussion
shaggy
Sep 23, 2014Nimbostratus
Verify that the "private_net" data group exists on your F5 ( Local Traffic | iRules | Data Group List ) and that it contains the IP addresses you expect.
when HTTP_REQUEST {
if { [class match [IP::client_addr] equals private_net } {
HTTP::redirect "http://www.somewebsite.com/internal.html"
} else {
HTTP::redirect "http://www.somewebsite.com/external.html"
}
The following post has more options/discussion regarding redirecting based on client IP: https://devcentral.f5.com/questions/irule-redirect-based-on-client-ip-address