Forum Discussion
jj24_43946
Apr 02, 2012Nimbostratus
evaluate IP::remote_addr as string
Hello and thanks in advance for your expertise:
My problem is that I want to be able to assign traffic to different pools based on the end digit of an IP address. For example, if it's from 0...
Sashi_81625
Apr 02, 2012Nimbostratus
when CLIENT_ACCEPTED {
set client_ip [getfield [IP::remote_addr] . 4]
if { $client_ip < 5 } {
pool POOLA
}
else {
pool POOLB
}
}
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