Forum Discussion
IDEXX_174255
Nimbostratus
Oct 16, 2014issue with iRule - client IP and http redirect
Can someone help me fix my error? I'm trying to add to a Big IP version 10.2.2
when HTTP_REQUEST {
if {[HTTP::uri] contains "CA" } and {[IP::addr [IP::client_addr] equals 10.10.0.0/21]} {
HTTP::red...
IDEXX_174255
Nimbostratus
Oct 17, 2014Thank 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"
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