Page 1 of 9 123 ... LastLast
Results 1 to 10 of 81

Thread: HOWTO improving your internet connection using wondershaper

  1. #1
    Join Date
    Oct 2004
    Location
    Netherlands
    Beans
    2,983
    Distro
    Ubuntu 8.04 Hardy Heron

    HOWTO improving your internet connection using wondershaper

    I just downgraded my internet connection. I just hate it when a p2p application prevents me from browsing the web fast. So let's do something about it

    wondershaper is an easy to use traffic shaping script that provides these improvements:

    * Low latency for interactive traffic (and pings) at all times
    * Allow websurfing at reasonable speeds while uploading / downloading
    * Make sure uploads don't hurt downloads
    * Make sure downloads don't hurt uploads

    official webpage :
    http://lartc.org/wondershaper

    about the ubuntu package :
    http://packages.ubuntu.com/hoary/net/wondershaper

    /usr/share/doc/wondershaper contains readme files. You might want to read these also.

    I'm using firestarter together with wondershaper. Nothing has to be changed to firestarter.

    So here we go :
    sudo apt-get install wondershaper

    use ifconfig to determine which of your networkcards is the one that is connected to your modem (and thus the internet).

    $ifconfig

    the networkcard that has your normal ip adress is the one (not 192.168.x.x)

    Go to a speedtesting website (for example a speedtesting website by your internet provider or www.speedtest.nl if you live in the netherlands) and determine your average upload and download speed. Use these speeds as a guide.

    $sudo wondershaper eth1 downspeed upspeed

    download a big and uncompressable file while pinging to a fast and stable server on the internet or to your modem and adjust your downspeed until you are satisfied :

    $sudo wondershaper eth1 downspeed upspeed

    Now do the same with uploading a big and uncompressable file.

    You have to tweak these settings a while until you are satisfied. When you are ready you can make these connection settings permanent by :

    $ sudo pico /etc/network/interfaces

    add these lines under eth1 if eth1 is your internetconnection. Change eth1,upspeed and downspeed to your settings.

    Code:
    up /sbin/wondershaper eth1 downspeed upspeed
    down /sbin/wondershaper clear eth1
    And we are done!

    edit : removed a bug from interfaces
    Last edited by ubuntu_demon; July 1st, 2005 at 12:16 AM.

  2. #2
    Join Date
    Mar 2005
    Location
    Italy
    Beans
    239

    Re: HOWTO improving your internet connection using wondershaper

    Thanks for the howto.
    In what format are the speeds?
    could you hint some extra tweaking? has wordershaper a global config file or any other interesing option?
    Last edited by soul_rebel; April 11th, 2005 at 01:39 PM.
    Adopt an unanswered post!

    Do not learn unix like "type this to do that", get some real knowledge.
    My blog

  3. #3
    Join Date
    Oct 2004
    Location
    Netherlands
    Beans
    2,983
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO improving your internet connection using wondershaper

    Quote Originally Posted by soul_rebel
    Thanks for the howto.
    In what format are the speeds?
    could you hint some extra tweaking? has wordershaper a global config file or any other interesing option?
    speeds are in kilobits per second

    you can use clear wondershaper from an network interface using :
    sudo wondershaper clear eth1

    There are no other configuration options. wonderhaper is easy. If you want more power as far as I know the best option is to build your own firewall yourself.

    This is a nice howto. But its written for gentoo :

    http://gentoo-wiki.com/HOWTO_Packet_Shaping

    Maybe I'll write my own Ubuntu howto in the future. I first need to learn about it
    Last edited by ubuntu_demon; April 12th, 2005 at 04:14 PM.

  4. #4
    Join Date
    Mar 2005
    Location
    Italy
    Beans
    239

    Re: HOWTO improving your internet connection using wondershaper

    I just installed that on my suse gateway and I found that the suse package is much more complete as usual (sadly) it has a /etc/sysconfig/wondershaper config file and an /etc/init.d/wondershaper. You edit the config and add the service.
    I think ubuntu should learn (and copy) this way of packaging stuff.
    Adopt an unanswered post!

    Do not learn unix like "type this to do that", get some real knowledge.
    My blog

  5. #5
    Join Date
    Nov 2004
    Location
    Bern, Switzerland
    Beans
    578

    Re: HOWTO improving your internet connection using wondershaper

    Quote Originally Posted by soul_rebel
    I just installed that on my suse gateway and I found that the suse package is much more complete as usual (sadly) it has a /etc/sysconfig/wondershaper config file and an /etc/init.d/wondershaper. You edit the config and add the service.
    I think ubuntu should learn (and copy) this way of packaging stuff.
    any chance to define the upload speed for a specific application?
    I found a tool for doing it, it's called trickle. But somehow it consumed too much ressource with some p2p tools

  6. #6
    Join Date
    Oct 2004
    Location
    Netherlands
    Beans
    2,983
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO improving your internet connection using wondershaper

    Quote Originally Posted by rwabel
    any chance to define the upload speed for a specific application?
    I found a tool for doing it, it's called trickle. But somehow it consumed too much ressource with some p2p tools
    wondershaper is nice because it's very easy

    The best solution is writing your own rules. (A script to set up iptables filter+mangler and using tc do traffic shaping just like you want it) It isn't very hard. I'm reading about it and if I have succeeded I'll probably make an HOWTO.

    In this topic I started I invite everyone to comment on the script I'm writing (it isn't finished) :
    http://www.ubuntuforums.org/showthread.php?t=26055

  7. #7
    Join Date
    Jan 2005
    Location
    Ängelholm, Sweden
    Beans
    Hidden!
    Distro
    Kubuntu 6.06

    Re: HOWTO improving your internet connection using wondershaper

    Very nice, it help me very much, thx for the howto!

  8. #8
    Join Date
    Oct 2004
    Location
    Netherlands
    Beans
    2,983
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO improving your internet connection using wondershaper

    Quote Originally Posted by Get
    Very nice, it help me very much, thx for the howto!
    glad to help

  9. #9
    Join Date
    Feb 2005
    Beans
    202

    Re: HOWTO improving your internet connection using wondershaper

    Quote Originally Posted by demon666_nl
    speeds are in kilobits per second

    This is a nice howto. But its written for gentoo :

    http://gentoo-wiki.com/HOWTO_Packet_Shaping

    Maybe I'll write my own Ubuntu howto in the future. I first need to learn about it
    I agree with demon, that is one brillaint HOWTO. Also been scouring for a while to find a good one and thats so far the best. As long as you get all the software installed it's doesn't matter if it's gentoo or not, will work on all distros. Thanks for the link!

  10. #10
    Join Date
    Oct 2004
    Location
    Netherlands
    Beans
    2,983
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO improving your internet connection using wondershaper

    Quote Originally Posted by psypher
    I agree with demon, that is one brillaint HOWTO. Also been scouring for a while to find a good one and thats so far the best. As long as you get all the software installed it's doesn't matter if it's gentoo or not, will work on all distros. Thanks for the link!
    there's more links in this thread :

    http://www.ubuntuforums.org/showthread.php?t=26055

    I'm going to make my own packet scheduling script fitted for my own situation and post it there with some comments.

Page 1 of 9 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •