Forum Discussion
Vishal_96707
Nimbostratus
Mar 03, 2009Bypass iRule for specific IP
I have following iRule configured for sharepoint app which redirects to a different site when you get "404" or "File Not Found" error. I want to have a configuration in which the certain ip will bypas...
benoit_9199
Nimbostratus
Mar 05, 2009Hi,
I don't understand, on what do you want to 'while' ?
If you mean for each client IP address then you need only an if:
if { not [matchclass [IP::remote_addr] equals $::serversIpClass] } {
if {([HTTP::status] == 404)} then {
HTTP::redirect "url"
} elseif { ([HTTP::payload] contains "File Not Found") or ([HTTP::payload] contains "404 NOT FOUND") } then {
HTTP::redirect "url"
}
}
}
or if there is only one exception, something like that:
if { [IP::remote_addr] not equals "10.0.1.1" }
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
