Forum Discussion
barry_8239
Nimbostratus
Jun 24, 2013allow rule vs deny
I would like to add a new irule which permits all previous versions of Apple IOS from 6.145 and will deny anything release thereafter. This is our current rule
when HTTP_REQUEST {
switch ...
Kevin_Davies_40
Nacreous
Sep 13, 2013If you are talking version numbers your probably better off converting and comparing numerically.
set num=*get field from user agent*
foreach {major minor sub} [split $num "."] break;
if { $major < 7 } {
if { $minor < 1002 } {
if { $sub < 145 } {
reject
log local0. "reject reason"
}
}
}
If however the version number is numerically valid..
if {$version < 1006.145} {
reject
}
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