Jim_Raleigh
Feb 01, 2018Nimbostratus
Converting iRule from v9 to v12
In the process of migrating from v9.4.7 to v12.1.1 and am having issues with iRules... In the following I am pulling string Data Groups for B2B_Blocked_URLS and B2B_URLS... Could you assist on how I would do this on the new version?
when RULE_INIT {
set ::DEFAULT_URI "/b2b/init.do"
}
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] contains $::B2B_Blocked_URLS] } {
HTTP::redirect "$::DEFAULT_URI"
}
if { [matchclass [HTTP::uri] contains $::B2B_URLS] } {
} else {
log local0.crit [HTTP::uri] HTTP::redirect "$::DEFAULT_URI"
}
}