Forum Discussion

Omar_68868's avatar
Omar_68868
Icon for Nimbostratus rankNimbostratus
Jul 02, 2010

iRules 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

 

  • 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
    }
    }