How can I limit the upload/download bandwidth on my CentOS server?
- by Dan Nestor
How can I limit the upload and download bandwidth on my CentOS server? This is a box with a single interface, eth0.
Ideally, I would like a command-line solution (I've been trying to use tc), something that I could easily switch on and off in a script.
So far I've been trying to do something like tc filter add dev eth0 protocol ip prio 50 u32 police rate 100kbit burst 10240 drop but I'm obviously missing a lot of knowledge and information. Can somebody help with a quick one-liner?
Many thanks,
Dan