Forum Discussion
DhruvaS_267726
Nimbostratus
Sep 06, 2017iRule to Allow the String for specific IP Address and block the access for rest
Hi Experts,
I have requirement to allow the String "/___special___" only from Internal Network and Block the access for rest of the world.
I have created below iRule:
Created the Data ...
Lee_Sutcliffe
Nacreous
Sep 06, 2017You need to specify the partition when calling the datagroup if this is in anything else other than /Common/. Also if both partitions are child partitions, they will not be able to access each other's content.
when HTTP_REQUEST {
if {([HTTP::uri] contains "/___special___") && (not[class match [IP::client_addr] equals /partition/Internal_Net])} {
log local0.alert "Rejecting \"[HTTP::host][HTTP::uri]\" Special request from [IP::client_addr]"
reject
}
}
MP
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