Forum Discussion
Cwoods-KCS
Nimbostratus
Dec 03, 2019Redirect based on URI/RFC1918 to Pool
The request I have is that clients coming from RFC1918 IP's with Admin/admin in the URI will be sent to a server in another pool separate from the VS. If the client is NOT coming from an RFC1918 IP ...
Dec 03, 2019
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "admin" } {
if { not ([class match [IP::client_addr] equals private_net]) } {
HTTP::redirect "http://abc.com"
pool xyz_pool
}
}
}
Cwoods-KCS
Nimbostratus
Dec 03, 2019Same result as with my previous iRule, the client's with private IP's and looking for the uri /admin end up landing on the VS pool member and not the iRule defined pool member.
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