Forum Discussion
Limit users to 50 MB
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 }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com