Skip to content

Instantly share code, notes, and snippets.

@andresbott
Created February 10, 2016 14:13
Show Gist options
  • Save andresbott/11a36f64031bfeb975ec to your computer and use it in GitHub Desktop.
Save andresbott/11a36f64031bfeb975ec to your computer and use it in GitHub Desktop.
Wondershaper speed limit + 10Mbps
when using wondershaper to limit high speed connections it does not work.
https://github.com/magnific0/wondershaper/issues/2 solves this
buzzy commented on 26 Oct 2013
I changed the line:
tc qdisc add dev $IFACE root handle 1: cbq avpkt 1000 bandwidth 10mbit
Into:
tc qdisc add dev $IFACE root handle 1: cbq avpkt 1000 bandwidth 1000mbit
And now everything works correctly. Now sure why the script is hardcoded to 10mbit though...
now "wondershaper eth1 16384 16384" (2MB/s) works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment