Forum Discussion
pedinopa_170325
Nimbostratus
Sep 14, 2016irule question
I want to write an iRule that will look at the client IP and direct the to a specific URL. I need some help with the irule
if CLIENT_IP -LIKE X.X.X.X
[
HTTP_REQUEST HTTP://SERVER/INDEX.HTM...
pedinopa_170325
Nimbostratus
Sep 14, 2016I have been doing some searching and reviewing log files I am trying to redirect based on client IP or should I be using remote_ip
this is what I have so far to try to redirect 1 IP then I need to do arange of IPs (192.168.1.0/24)
when HTTP_REQUEST { if { ( [IP::addr [IP::client_addr] equals x.x.x.x]) } { HTTP::redirect "http:///index_new.htm" } }
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