Forum Discussion

pjain_72429's avatar
pjain_72429
Icon for Nimbostratus rankNimbostratus
Oct 17, 2007

rule based on source IP

For following configuration

 

 

VIP-A

 

POOL-A

 

POOL-B

 

 

I want to create a iRule based on sourceIP range ( any traffic coming from 62.67.x.x and 63.65.x.x ) , traffic should go to POOL B for VIP-A. rest of traffic for VIP-A should go to POOL A.

 

 

Can somebody help with iRule?

 

 

Pankaj
  • rule user_class {

     

    if (client_addr contains "62.67" or "63.55" ) {

     

    use pool POOLB

     

    }

     

    else {

     

    use pool POOLA

     

    }

     

    }

     

     

     

     

    This should work but check the ipn adress if you want to include more octets

     

     

    let me know if you have an issue