-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
magnific0
committed
Sep 11, 2012
0 parents
commit 4082399
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
The Wonder Shaper 1.2 | ||
============== | ||
|
||
Copyright | ||
------------- | ||
|
||
bert hubert <ahu@ds9a.nl> http://lartc.org/wondershaper (c) Copyright 2002 | ||
magnific0 http://www.github.com/magnific0 (c) Copyright 2012 | ||
Licenced under the GPL | ||
|
||
About | ||
-------------- | ||
|
||
Wonder Shaper is a script that allow the user to limit the bandwidth of one or more network adapters. It does so by using iproute's tc command, but greatly simplifies its operation. Wonder Shaper was first released by Bert Hubert in 2002, but the original version lacked a command-line interface, from on version 1.2 this feature was added. The original README is a rather lengthy document and is saved under README.old, for those who'd like some more background information. Except any notes on operation this document is considered up-to-date. | ||
|
||
Installation | ||
-------------- | ||
|
||
1. Copy the file into your /usr/bin/ folder. | ||
|
||
2. If you haven't already done so, change the owner to root and change the permission, like so | ||
|
||
chown root:root /usr/bin/wondershaper | ||
|
||
chmod 744 /usr/bin/wondershaper | ||
|
||
3. You are now ready to use Wonder Shaper | ||
|
||
Usage | ||
-------------- | ||
|
||
wondershaper [-hcs] [-a <adapter>] [-d <rate>] [-u <rate>] | ||
|
||
The following command line options are allowed: | ||
|
||
- `-h` Display help | ||
|
||
- `-a <adapter>` Set the adpter | ||
|
||
- `-d <rate>` Set maximum download rate (in Kbps) | ||
|
||
- `-u <rate>` Set maximum upload rate (in Kbps) | ||
|
||
- `-c` Clear the limits from adapter | ||
|
||
- `-s` Show the current status of adapter | ||
|
||
The different modes are: | ||
|
||
wondershaper -a <adapter> -d <rate> -u <rate> | ||
|
||
wondershaper -c -a <adapter> | ||
|
||
wondershaper -s -a <adapter> | ||
|
||
Some examples: | ||
|
||
wondershaper -a eth0 -d 1024 -u 512 | ||
|
||
wondershaper -c -a eth0 | ||
|