Forum Discussion
issue with iRule - client IP and http redirect
Thank you for the reply. I did figure it out by adding some logging and tailing LTM log. the "HTTP::URI" contains line wasn't determined to be true therefore I modified it to HTTP::host equals. Thank you for your help.
if { [HTTP::host] equals "x.yz.com" and [IP::addr [IP::client_addr] equals 172.16.0.0/16] }{ log local0. "Redirecting to LAN IP" HTTP::redirect "https://internal.example.com" } elseif { [HTTP::host] equals "a.bc.com" }{ log local0. "Redirecting to EXTERNAL" HTTP::redirect "https://external.example.com"
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
