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
Hi,
Can you try this iRule?
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"
}
}
}
The BIG-IP system includes pre-configured private_net data group.
- Cwoods-KCSDec 03, 2019
Nimbostratus
In this iRule where is the part to send to the pool xyz_pool if hte client IP is RFC1918?
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