Last active
July 17, 2016 12:37
-
-
Save k2tzumi/3b0752a0c64366b06d1c57e9fe396210 to your computer and use it in GitHub Desktop.
3G Traffic Control
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Traffic Control | |
tc qdisc add dev eth0 root handle 1: htb default 12 | |
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 1000kbps ceil 1000kbps | |
tc qdisc add dev eth0 parent 1:12 netem delay 200ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment