Forum Discussion
Rustic_57941
Nimbostratus
Dec 17, 2012iRule Newbie - Limit Access to URIs based on IP Source
Hi,
I am just starting out in the wold of iRules - apologises for any newbie errors.
We have a test site that where access control was based on a firewall ACL - pretty simple worked fine. ...
Rustic_57941
Nimbostratus
Dec 17, 2012Thanks - I have change thins a little by creating a address-class datagroup which has the permitted IP addresses. This is used on the following iRule:
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] contains "/web/landing_page" } {
if { !([matchclass [IP::client_addr] equals Test_Allowed_IPs])} {
discard
}
}
}
This working with initial testing.
Rgds,
Mark
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