Hussein_Ghazy
Sep 09, 2013Nimbostratus
Limit users to 50 MB
Hi All,
i would like to limit users (per ip address) to only download from the VS 50MB (per day, per week, or per month), more than this will be dropped.
Regards
Hi All,
What about the below iRule with rate limiting rule.
rule testrule { when SERVER_CONNECTED { TCP::collect }
when SERVER_DATA { set srvAge [IP::stats age] set srvBytes [IP::stats bytes in] if {$srvAge > 86400000 } { if {$srvBytes > 52428800 } { rateclass droptest TCP::release log local0. "Bandwidth Hog: [IP::client_addr] server bytes $srvBytes" return } } TCP::release TCP::collect } }
rate class droptest { rate 0Mbps ceiling 0Mbps drop policy tail type sfq }