Forum Discussion
Jim_Sellers_106
Nimbostratus
Oct 03, 2011Path Based ACL Irule
Here is the scenario
I have 9 IP addresses that I want to allow to the following path but allow access to any other URL/URI on the server.
Lets just say ...
The_Bhattman
Nimbostratus
Oct 03, 2011Hi Jim,
alternatively if you want to create a white list then you could do the following:
class dg_whitelist{
"1.1.1.1",
"1.1.1.2",
"1.1.1.3",
.
.
.
"",
}
when HTTP_REQUEST {
switch -glob [string tolower [URI::basename [HTTP::uri]]] {
"manageaccount.aspx" -
"managevendor.aspx" {
if { not [class match [IP::client_addr] equals dg_whitelist] } {
discard
}
}
}
}
I hope this helps
Bhattman
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