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.
Best Answer
You can throttle the network bandwidth on the interface using the command called
tc
Man page available at http://man7.org/linux/man-pages/man8/tc.8.htmlFor a simple script, try wondershaper.
An example from using tc:
tc qdisc add dev eth0 root tbf rate 1024kbit latency 50ms burst 1540