Traffic Shaping Linux (restrict Bandwidth)

Allthough I haven’t found some shiny GUI somewhat like Netlimiter there is Wonder shaper (and shaper and trickle and squid for http and …) where a single command line sets your over-all bandwidth for network interface X. And, isn’t that all you really need?:

sudo wondershaper ethX downlink(kbit/s) uplink(kbit/s)

This is, from the perspective of the host doing the shaping. For example to set download to 10000kb (750*8 = 6000 DSL but don’t limit intranet connections on 1Mb Ethernet) but limit upload to, say, 35kB (~280kb) — e.g. if you have a server running on the same connection you do your daily internetting, you do:

sudo wondershaper eth0 10000 280

Ressources

6 Comments

  1. Monday, 21st Feb 2011 at 23:42

    Hi! I just wanted to ask if you ever have any issues with hackers? My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no data backup. Do you have any solutions to protect against hackers?

  2. Tigran said,

    Friday, 21st May 2010 at 15:03

    Guys you can try MasterShaper, http://www.mastershaper.org/

  3. sysblog said,

    Tuesday, 23rd Sep 2008 at 18:47

    not that I’m aware of, not with wondershaper. But as far as I know aMule has it’s own bandwidth limitation option. Try right clicking on the information bar icon.

  4. mati said,

    Tuesday, 23rd Sep 2008 at 12:02

    can you do this policies but to a specific program like AMULE ? only to this program like NETLIMITER?

  5. sysblog said,

    Monday, 30th Jun 2008 at 17:36

    Hi Colin.

    I’m afraid I don’t think this will work. Most likely your service provider will be the only one that can change your allowed bandwidth. Is your connection synchronous or do advertised bandwidth for up- and download differ?

    First of all it would be important to find out what your upload should be theoretically and second where the upload derating (if so) comes from. The only change I see that you could do something about it (other than protest) is if your upload capacity is in full use by your programs/services running. Even than wondershaper still will not help you since it’s effect is global (for your computer’s connection) and not per program or process. See if Bandwidth Limiting HOWTO can help you.

    Update: Also trickle could be your program of choice.

    CU

  6. Sunday, 29th Jun 2008 at 04:07

    Pardon the total newbie question, but could one use this command to transfer some of your downstream capacity to upstream capacity? I used SpeedTest.net to evaluate my service and found my line was uploading at a glacial 560 kbps, but downloading at around 7.6 Mbps.

    This is advertised as an “8 mega” service, but please. Back in Brooklyn, I had upload capacity of 7 Mbps.

    The whole issue confuses me (I majored in poetry).

    Isn’t my ISP (Net Serviços, São Paulo, Brazil) throttling me to death? (I do very, very little p2p activity, by the way, so I am nt one of those greedy 5% who are hogging 60% of the network or whatever.

    What is really making me impatient at the moment is the delay in an FTP upload I have to do. For this I pay the big bucks? What do I look like, a masochist?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: