Forum Discussion
Deb_Allen_18
Dec 04, 2007Historic F5 Account
Hi Veeranna -
Sounds like you want to limit outbound traffic traversing a forwarding virtual server.
I think you actually can use rate classes and an iRule to accomplish this goal.
First create 2 rate classes. For the 2Mbps rate class, set the ceiling to 2Mbps, and for the 20Mbps rate class, set the ceiling to 20Mbps. Configure the rest of the settings as makes sense for your bigger picture - here's the LC man page for configuring rate shaping:Click here
Then create an iRule to check the destination & time and apply the appropriate rate class to connections through the virtual.
when CLIENT_ACCEPTED {
rateclass 2Mbps
if { [IP::local_addr] == 192.168.1.222 } {
set current_time [clock seconds]
set time_min [clock scan {16:00}]
set time_max [clock scan {18:00}]
if {($current_time > $time_min) and ($current_time < $time_max)} {
rateclass 20Mbps
}
}
}
Post back if that isn't what you were looking for.
/deb