Forum Discussion
Jad_Tabbara__J1
Jul 24, 2017Cirrostratus
Hello 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