Forum Discussion
Omar_68868
Nimbostratus
Jul 02, 2010iRules to limit DeviceID and UserAgent
Does anyone have an iRule sample to limit only the allowed devices to access an Exchange ActiveSync virtual pool? I'd like to only allow devices like iphone 3GS and 4 but not iphone 3g and 2. I'd like to also limit by version of the OS (i.e. iphone 4.0 OS not 3.x), so anything not up to the approved version gets dropped.
Thanks, Omar
1 Reply
- Michael_Yates
Nimbostratus
Sure. I used the example in this thread discussion to build my iRule that we use to block smart phones from OWA Access.
http://devcentral.f5.com/Forums/tabid/1082223/asg/50/showtab/groupforums/aff/5/aft/15116/afv/topic/Default.aspx
The base example of the iRule as well as a sizable list of UserAgents are in the post above.
Works like a charm. You'll love it.
If you run your OWA Traffic through the ASM, then you will need to do something like this instead of directing the traffic to a specific Pool:default { log local0. "Unknown Device Access - [HTTP::header User-Agent]" HTTP::class select name.of.asm.class.configured.in.asm.module } }
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