Forum Discussion
FlorianM_29948
Nimbostratus
Nov 27, 2012Restrict access by uri and ip
Hi everyone i'm new to the F5 community and i'm having troubles with an iRule.
I need to be abble to restrict the access of many uri based on multiple ip addresses who may vary between ea...
FlorianM_29948
Nimbostratus
Nov 27, 2012Posted By nitass on 11/27/2012 03:39 AM
I came up with that iRule and it works but i would like to replace the if-elseif statements with a switch for more clarity : i do not think you can perform class match in switch string. anyway, if there is no performance issue, your code looks okay to me.
That's the conclusion i reach also, class match in switch string doesn't seem to be a good idea.
I don't think i'll have performance issue since my server has a lot of ressources always available so...
Anyway thanks for the answers I think i'm going to replace the "elsif" with "or " that will make me gain some lines.
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