Forum Discussion
player_72606
Nimbostratus
Apr 15, 2008FilterURI to Source IP
Hi,
I need to config an "Access-list" to permit a specific source-address to a specific uri for web-application management.
Other traffic to this uri from other source address shou...
Jason_Keating
Altostratus
Apr 15, 2008Hi
I would modify this from Codeshare
http://devcentral.f5.com/Wiki/default.aspx/iRules/AccessControlBasedOnIP.html
You could put the logic in a "HTTP REQUEST" event instead and wrap the if/else in the following (semi Pseudo code - cause I aint that good at iRules yet)...
when HTTP_REQUEST{
if [HTTP::uri:] contains "web/application/management/uri" {
if { [matchclass [IP::client_addr] equals $::trustedAddresses..........
}
}
}
Lookup matchclass in the iRules Wiki for examples of how to use datagroups (easy)
Hope this helps
J
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