Forum Discussion
Jason_40769
Nimbostratus
Aug 09, 2010Subwebsite ACL
We have a subsite that we would like to have an ACL for and im trying to figure out how to do it. The site would be www.mysitename.com/admin and i only want a certain host ip and network to access it...
Chris_Miller
Altostratus
Aug 09, 2010Posted By Jason@musl.com on 08/09/2010 07:06 PM
Also.. the most recent code you wrote returns several new errors as well.
01070151:3: Rule [subsite_ACL] error: line 1: [command is not valid in the current scope] [class subsite { "/admin" } ] line 5: [command is not valid in the current scope] [class allow { host 216.81.150.194 network 192.168.0.1 255.255.255.0 } ] line 11: [can't find value_list] [class match [string tolower [HTTP::uri]] contains subsite] line 11: [invalid operator "ne" must be: contains ends_with equals starts_with] [class match [IP::client_addr] ne allow]
This compiles for me:
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::uri]] contains subsite] and ![class match [IP::client_addr] eq allow] } {
discard }
}
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