How to limit network bandwidth?
We are hosting an application on remote server. We need to test it with a limited network bandwidth (for users with bad Internet access).
Can I limit my internet bandwidth? For instance: 128 KB per second.
This question focuses on system-wide or container-wide solutions on Linux. See Limiting a specific shell's internet bandwidth usage for process- or session-specific solutions.
You can throttle the network bandwidth on the interface using the command called
tcMan page available at http://man7.org/linux/man-pages/man8/tc.8.html
For a simple script, try wondershaper.
An example from using tc:
tc qdisc add dev eth0 root tbf rate 1024kbit latency 50ms burst 1540
You can get to the atmail content here: http://web.archive.org/web/20130719031908/http://atmail.com/kb/2009/throttling-bandwidth
better late than never if your gonna use a busybox router a better method is the `tc` command, you can check out mark's post here http://mark.koli.ch/slowdown-throttle-bandwidth-linux-network-interface the openvz wiki has more examples https://openvz.org/Traffic_shaping_with_tc
looks like it is also possible to limit bandwidth with iptables (you can edit the answer if needed): http://serverfault.com/questions/52027/how-can-i-limit-per-user-bandwidth