Forum Discussion

cxcal_18687's avatar
cxcal_18687
Icon for Nimbostratus rankNimbostratus
Nov 04, 2008

x4 conversion

Any documentation or toools available (LOL) to help convert this x4 irule to x9 ??

 

 

Converting iRules are like kryptonite for me..

 

 

 

 

RULE DMZAccessControl {

 

if (not client_addr == 192.168.13.84 and not client_addr == 192.168.13.74) {

 

discard

 

}

 

else {

 

use pool HTTPS

 

}

 

}

 

1 Reply

  • You can use IP::addr (Click here) to compare individual IP addresses or hosts:

     
     when CLIENT_ACCEPTED { 
      
         Check if client is 192.168.13.84 or 192.168.13.74 
        if {[IP::addr [IP::client_addr] equals 192.168.13.84] or [IP::addr [IP::client_addr] equals 192.168.13.74]}{ 
      
            client is one of the two, so send to pool 
           pool https_pool 
      
        } else { 
      
           discard 
        } 
     } 
     

    Aaron