User Tools

Site Tools


unix:traffic-shaping

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
unix:traffic-shaping [2009/07/12 20:53]
robm
unix:traffic-shaping [2013/10/13 12:42]
robm +Intro, correct up/down terms
Line 2: Line 2:
  
   * Limit a single app with the ''trickle'' package   * Limit a single app with the ''trickle'' package
 +
 +===== 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 and 1MBit download (converting kB to kbit, and using numbers from my ADSL router web-interface)+sudo wondershaper eth0 $((8273*8*1024)) $((1209*8*1024)) # Configure eth0 with 8MBit downlink and 1MBit uplink (converting kB to kbit, and using numbers from my ADSL router web-interface)
 wondershaper eth0 wondershaper eth0
     qdisc cbq 1: root rate 10000Kbit (bounded,isolated) prio no-transmit     qdisc cbq 1: root rate 10000Kbit (bounded,isolated) prio no-transmit
unix/traffic-shaping.txt · Last modified: 2013/10/13 12:43 by robm