Forum Discussion
Brian_Mayer_841
Nimbostratus
Aug 19, 2008Conditional logic based on source IP
Hi guys,
We'd like to implement an iRule that triggers on the presence of two or three specific strings in the URI. When any of the strings are found, we next want to check the source ...
Nicolas_Menant
Employee
Aug 19, 2008Hi,
This is possible with something like this
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/appli1" } {
if {[matchclass [IP::addr [IP::client_addr]/16] equals $::autorized_IPs]} {
pool web_pool
} else {
reject
}
}
Here are the links that may help you:
Click here
Click here
Click here
HTH
N.
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