Forum Discussion
neeeewbie
MVP
Aug 26, 2019redirect based on source address
Hi guys I need your help! I have to redirect according to the scope 1.1.1. * ~ 1.1.186. * Redirects to pool A To redirect to pool B from 1.1.186. * To 1.1.255. * How do I use irule? and ...
Aug 26, 2019
Hi neeeewbie,
iRule:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 1.1.0.0/16] } {
set thirdOctet [expr { [getfield [IP::client_addr] "." 3]}]
# log local0. "ThirdOctet: $thirdOctet"
if { $thirdOctet < 186 } {
pool pool_A
} else {
pool pool_B
}
}
}data_group location in UCS:
/config/bigip.confRecent 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
