Sunday, January 16, 2011

Control Your Network Traffic with Wondershaper in Ubuntu/ Debian Linux

Control Your Network Traffic with Wondershaper in Linux

If you are a Network Administrator with little knowledge in Network Protocols and IPtables, don't worry you can also control your network traffic with a simple tool named wondershaper. It Works on Linux 2.4 & higher.

Open a Terminal and type the following

$ sudo apt-get install wondershaper

official site :

Readme files in /usr/share/doc/wondershaper

The following Command will help you to find the network interface (eth0, eth1 or wifi0 etc..)


$sudo wondershaper eth0 downspeed upspeed
eg: sudo wonderspeed 128 64

To Disable this settings

$sudo wondershaper clear eth0

make these connection settings permanent by editing /etc/network/interfaces file :

$ sudo gedit /etc/network/interfaces and add the following lines

up /sbin/wondershaper eth0 downspeed upspeed
down /sbin/wondershaper clear eth0


Joe said...

The down and up speeds, are they from a desktop or a server perspective? I need to throttle the outbound network on my server.

Anonymous said...

To Joe:
I think this apply for both scenarios: Desktop and Server.

Joe said...

Thanks for that confirmation. Maybe now I can get back to being a mirror for Fedora again.