Forum Discussion
bsb
Nimbostratus
Jun 12, 2018irule for specific pools
Team,
would like to configure an irule to redirect based on client ip's.
when HTTP_REQUEST {
if { [matchclass [IP::client_addr] equals 1.1.1.0/24] } {
do nothing.
}
elseif...
youssef1
Cumulonimbus
Jun 12, 2018Hi,
First of create your DataGroup then use this irule:
when CLIENT_ACCEPTED {
if { not ( [class match [IP::client_addr] equals my_ip_dg] ) } {
do nothing
} elseif {([class match [IP::client_addr] equals my_ip_dg]) }{
HTTP::redirect "https://www.test.com"
}
}
Regards
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
