Forum Discussion

henry_kay_36032's avatar
henry_kay_36032
Icon for Nimbostratus rankNimbostratus
Jan 09, 2012

migrate 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

 

 

2 Replies

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