Forum Discussion

Emad's avatar
Emad
Icon for Cirrostratus rankCirrostratus
Mar 24, 2013

Traffic Load Handling.

we have too much traffic load from some specific client IP's and i want to make a separate pool for that clients. so that if request comes from their network that should be routed to separate pool.

 

What are the possiable ways to do that.

 

1 Reply

  • You can use iRules for that:

     

     

    rule myrule {

     

    when CLIENT_ACCEPTED {

     

    set vs "[IP::local_addr]:[TCP::local_port]"

     

     

    if {[IP::addr [IP::client_addr] equals 172.28.19.0/24]}{

     

    pool foo1

     

    } else {

     

    pool foo2

     

    }

     

    }

     

     

    Or if you have many subnets, you can change the iRule to use a datagroup with the defined subnets in it.