This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
unix:traffic-shaping [2009/07/12 20:53] robm |
unix:traffic-shaping [2013/10/13 12:43] (current) robm [Traffic Shaping] |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| * Limit a single app with the '' | * Limit a single app with the '' | ||
| + | * See https:// | ||
| + | ===== Force shaping onto someone else's network ===== | ||
| + | |||
| + | Here's a quick-and-dirty guide to how I hijacked my home network when I lived with some other students to force traffic shaping onto the entire network, since two of my housemates had gone away for the weekend and left their torrent clients running. | ||
| <code bash> | <code bash> | ||
| Line 24: | Line 28: | ||
| # Open a new terminal | # Open a new terminal | ||
| sudo apt-get install wondershaper | sudo apt-get install wondershaper | ||
| - | sudo wondershaper eth0 $((8273*8*1024)) $((1209*8*1024)) # Configure eth0 with 8MBit upload | + | sudo wondershaper eth0 $((8273*8*1024)) $((1209*8*1024)) # Configure eth0 with 8MBit downlink |
| wondershaper eth0 | wondershaper eth0 | ||
| qdisc cbq 1: root rate 10000Kbit (bounded, | qdisc cbq 1: root rate 10000Kbit (bounded, | ||