Forum Discussion

schmal_111133's avatar
schmal_111133
Icon for Nimbostratus rankNimbostratus
13 years ago

How I can do shaping based on client IP?

Hi,

 

I need to do shaping to subscribers that browsing through my F5 LTM, for .

 

The task is to shape each client to 512 Kbps, for all my researching here I found only way to do shape for all the subscribers together.

 

The best idea that I have for now is to create 254 rate classes and implement the irule below:

 

 

when CLIENT_ACCEPTED {

 

set octets [split [IP::client_addr] "."]

 

set rclass [concat class[lindex $octets end]]

 

log local0. "[IP::client_addr] being sent to rateclass $rclass ---- $octets ---- [lindex $octets end]"

 

rateclass $rclass

 

}

 

 

But still this is not a solution since I relay here on the last octet of IP address and I need to do shaping each client/connection separately.

 

 

Do you guys have any idea how to implement the above?

 

 

Many Thanks.

 

2 Replies

No RepliesBe the first to reply