Forum Discussion
Check1t_282465
Nimbostratus
Jul 24, 2017Utilize iRule to minimize APM usage
I have an Access Profile which is invoked for an application in which
a) Checks source IP. If whitelisted subnet, allowed to pass through. Otherwise
b) Checks URI. if specificied URI requested,
c) F...
Jad_Tabbara__J1
Cirrostratus
Jul 24, 2017Hello Check1t,
Yes you can reduce the number of session consumed by the APM by writing an irule.
The irule can take many forms but the important is to use "Access::disable" "Access::enable".
If you don't have many subnets to whitelist you can do it like this :
when HTTP_REQUEST {
ACCESS::disable
if { ([HTTP::uri] starts_with "/admin") && ! ([IP::addr [IP::client_addr] equals 192.168.1.0/24]) && ! ([IP::addr [IP::client_addr] equals 192.168.2.0/24]) } {
Only client IP that are not in subnets 192.168.1.0/24 and 192.168.2.0/24 and requesting /admin will use APM
ACCESS::enable
}
}
If you have more subnets, you can use datagroup for clarity.
Regards
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