Skip to content

Instantly share code, notes, and snippets.

@k2tzumi
Last active July 17, 2016 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k2tzumi/3b0752a0c64366b06d1c57e9fe396210 to your computer and use it in GitHub Desktop.
Save k2tzumi/3b0752a0c64366b06d1c57e9fe396210 to your computer and use it in GitHub Desktop.
3G Traffic Control
#!/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