How can I limit the upload/download bandwidth on my CentOS server?
Posted
by
Dan Nestor
on Server Fault
See other posts from Server Fault
or by Dan Nestor
Published on 2013-10-30T21:49:56Z
Indexed on
2013/10/30
21:57 UTC
Read the original article
Hit count: 317
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
© Server Fault or respective owner