Forum Discussion

Salvador_del_Re's avatar
Salvador_del_Re
Historic F5 Account
Mar 09, 2007

Rate Shaping for user

I want to make a rate shaping using a irule for control to any users that not use more than a specific rate.

 

i use this irule

 

when CLIENT_ACCEPTED {

 

set direccion [client_addr]

 

set puerto [client_port]

 

if { [IP::remote_addr] == "62.151.3.65" } {

 

rateclass rate-shaping-web2mdown_vip

 

}

 

}

 

and for the user 62.151.3.65 put the rateclass correctly.

 

I want put rate shaping for each diferent users unknown his IP address

 

Any suggest??
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    If you've got logic that's working for you, but you want to be able to iterate it across many IP addresses, your best bets are to either use wildcards, network ranges, or a class list of the IP addresses and the corresponding rateclasses.

     

     

    How many individual addresses are you trying to set up ratelimiting to individual classes for? Are they arranged by network range? These are the types of things you'll want to think about when determining which option is best for your particular scenario.

     

     

    HTH,

     

    Colin