Forum Discussion
Mike_Graston_10
Nimbostratus
Sep 17, 2007Permit access based on Client IP "again"
All,
I have been working on this for 2 days and can't seem to get it right. Whenever I apply it the rule it shuts down the site. Here is what I have.
when CLIENT_ACCEPTED {
if {...
spark_86682
Sep 17, 2007Historic F5 Account
What's happening is that the "drop" command in your iRule will get executed for all requests. I suspect that you may be used to 4.x iRules, where the "pool" command would stop execution of the iRule; in 9.x, processing will continue.
The following iRule should do what you want:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 10.10.10.10] } {
pool pool-my-pool
} else {
drop
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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