Forum Discussion
ling_ma_107977
May 30, 2006Nimbostratus
irule to accomplish URI ACL
Rently, I encountered a rather complex problem about using irule on ltm 6800 to accomplish URI ACL. The requirements are as follows:
The URL format is http://172.16.1.100/a/b/c;172.16.1.100 is th...
Deb_Allen_18
May 30, 2006Historic F5 Account
Hi Mary,
You can start by splitting the URI on the "/" character and extracting the directory names, then create conditions for traffic management based on the request:
when HTTP_REQUEST {
set dir1 [getfield [HTTP::path] "/" 2]
set dir2 [getfield [HTTP::path] "/" 3]
set dir3 [getfield [HTTP::path] "/" 4]
if { $dir1 eq"a" and $dir2 eq "b" and $dir3 eq "c"}{
pool ABC
} elseif { $dir1 eq"c" and $dir2 eq "b" and $dir3 eq "a"}{
pool CBA
} else {
reject
}
}
HTH
/deb
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