Forum Discussion
shipszky_319427
Nimbostratus
Jan 29, 2018Ip filter iRule with multiple data groups
I currently have an iRule in place to do ip filtering in multiple places in a website. I had an oversight when this was first written and failed to put a rule in for the entire website.
when H...
JG
Cumulonimbus
Jan 30, 2018Would the following do (untested)?
} elseif { { [string tolower [HTTP::uri]] eq "/" } then {
set dg_list {dgrp1 dgrp2 dgrp3}
set allowed 0
foreach dg $dg_list {
if { [class match [IP::client_addr] equals dg] }{
set allowed 1
break
}
}
if { $allowed < 1} {
HTTP::respond 403 content "Access Denied"
}
}
(Replace dgrp* with real data group names.) .
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