Forum Discussion
Rabbit23_116296
Nimbostratus
Apr 01, 2015iRule to disable APM not working as expected
when HTTP_REQUEST {
set header [HTTP::header "User-Agent"]
log local0. "Before Match --- Header is: $header"
if {[string tolower [HTTP::header "User-Agent"]] contains "mac os x" && [string tolower [HTTP::uri]] equals "/ews/exchange.asmx"} {
ACCESS::disable
log local0. "one time"
log local0. "URI: [HTTP::uri]"
pool /Common/exchange.app/exchange_oa_pool6
}
}
25 Replies
- Rabbit23_116296
Nimbostratus
Cannot save or edit the post so: APM is still causing grief for Mac clients. I am trying to disable the policy for Mac User-Agent headers. This is killing the session but resulting in a apm loop (it just creates an immediate subsequent session ID). Any ideas? - Michael_Jenkins
Cirrostratus
If your request has any of the apm cookies, you may need to remove them from that request. I've had weird issues like that.
so, perhaps your iRule could do something like this:
when HTTP_REQUEST { if {[string tolower [HTTP::header "User-Agent"]] contains "mac os x" && [string tolower [HTTP::uri]] equals "/ews/exchange.asmx"} { log local0. " Disable access for [HTTP::uri]" ACCESS::disable HTTP::cookie remove "MRHSession" HTTP::cookie remove "LastMRH_Session" } else { log local0. " [HTTP::uri]" } } - kunjan_118660
Cumulonimbus
May want to try with
when CLIENT_ACCEPTED { ACCESS::restrict_irule_events disable }- Rabbit23_116296
Nimbostratus
Don't I need to have an iRule event in the access policy event for this then? - Rabbit23_116296
Nimbostratus
Don't I need to have an iRule event in the access policy event for this then? - kunjan_118660
Cumulonimbus
Not required.
- kunjan
Nimbostratus
May want to try with
when CLIENT_ACCEPTED { ACCESS::restrict_irule_events disable }- Rabbit23_116296
Nimbostratus
Don't I need to have an iRule event in the access policy event for this then? - Rabbit23_116296
Nimbostratus
Don't I need to have an iRule event in the access policy event for this then? - kunjan
Nimbostratus
Not required.
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