Forum Discussion
ant77
Cirrostratus
Apr 02, 2020Allow access to multiple URI based on IP in data group only, while allow others full access
Can any of the irule expert please help me with creating this irule based on this condition? I think i have it, but not sure. Conditions: Create subnets data group allow users coming from these ...
Simon_Blakely
Employee
Apr 05, 2020when HTTP_REQUEST {
if { [class match [IP::client_addr] equals DG1-BLOCKED-SUBNETS]} {
if { not ([class match [HTTP::uri] equals DG2-ALLOWED-URIs]) } {
drop
}
}
}You were missing a [ class match
Simon_Blakely
Employee
Apr 07, 2020The drop will only impact traffic from the DG1-BLOCKED-SUBNETS that does not match the DG2-ALLOWED-URIs.
All other traffic that is not in the DG1-BLOCKED-SUBNETS will pass for all URIs.
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