Forum Discussion
henry_kay_36032
Nimbostratus
Jan 09, 2012migrate version 4 irule to version 10
hi guys,
was trying to input the irule from version 4 to version 10 box. but seems like there is big differences in the coding.
Appreciate if anyone could help out on this one.
i have attached the version 4 irule below.
rule redirect {
if (client_addr == 172.23.13.0 netmask 255.255.255.0 or client_addr == 10.71.53.0 netmask 255.255.255.0 or client_addr == 10.71.51.0 netmask 255.255.255.0) {
use pool pool_ssoweb_80
}
else {
redirect to "http://maintenance.ite.edu.sg/ite/index_op.html"
}
}
thanks in advance for any help given :D
cheers
- nitass
Employee
can you try this?when HTTP_REQUEST { if {[IP::addr [IP::client_addr] equals 172.23.13.0/24] or [IP::addr [IP::client_addr] equals 10.71.53.0/24] or [IP::addr [IP::client_addr] equals 10.71.51.0/24]} { pool pool_ssoweb_80 } else { HTTP::redirect "http://maintenance.ite.edu.sg/ite/index_op.html" } }
- henry_kay_36032
Nimbostratus
nitass, it work like a charm.
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