Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
So the question is in the name of topic. How to limit bandwidth I know.
Using tc.
But how to do so after, for example, traffic had reached 500MB.
And after some time reset the limits.
tc
and it's classes. Seems to be very hard or very rare problem.