Forum Discussion
cxcal_18687
Nimbostratus
Oct 21, 2008converting 4.x iRule
I recently did a conversion from 4.x to 9.3.1 and all of the iRules came over clean (that I can tell so far).
but there was one iRule that I'm having issues with:
if (not...
hoolio
Cirrostratus
Oct 21, 2008Hi,
You can use IP::client_addr (Click here) to get the client IP address. And you can use the IP::addr command (Click here) to evaluate one IP or subnet against another.
when CLIENT_ACCEPTED {
Check if client IP is 192.168.12.1 or .2
if {[IP::addr [IP::client_addr] equals 192.168.12.1] or [IP::addr [IP::client_addr] equals 192.168.12.2]}{
use the HTTPS pool
pool Ing_HTTPS
} else {
Drop the request
discard
}
}
Aaron
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