Forum Discussion
IRule to disable APM
I would like to use an IRule applied to the VIP to disable APM when a certain client connects to the VIP. Here is what I'm trying but I get an error.
when CLIENT_ACCEPTED { if { [IP::addr [IP::client_addr] equals 10.63.134.26] or [IP::addr [IP::client_addr] equals 10.63.134.27] and [IP::addr [IP::local_addr clientside] equals 10.63.27.108]} { ACCESS::disable } }
- natheCirrocumulus
Hi Dustin,
First thing I see is ACCESS::disable command is not available in CLIENT_ACCEPTED event, needs to be HTTP_REQUEST.
Rgds
N
- natheCirrocumulus
Notice some curly brace issues too. Try this:
when HTTP_REQUEST { if { ([IP::addr [IP::client_addr] equals 10.63.134.26] or [IP::addr [IP::client_addr] equals 10.63.134.27]) and ([IP::addr [IP::local_addr clientside] equals 10.63.27.108]) } { ACCESS::disable } }
Recent Discussions
Related Content
* 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