Forum Discussion
What_Lies_Bene1
Nov 01, 2012Cirrostratus
OK, so I knocked this up;
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals x.x.x.x] } {
rateclass name_of_your_rateclass
log local0. "Bandwidth Hog: [IP::client_addr] detected, Rate Class applied."
}
}
And found this right afterwards (which has an example which is essentially the same): https://devcentral.f5.com/wiki/iRules.rateclass.ashx
No idea what happens if the client opens multiple connections. Perhaps you can let us know?