Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20748 - wondershaper / wshaper (new ebuild)
Summary: wondershaper / wshaper (new ebuild)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-05-10 10:23 UTC by Christian Loitsch
Modified: 2007-09-14 14:03 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the ebulid (wondershaper-1.1a.ebuild,1.12 KB, text/plain)
2003-05-10 10:24 UTC, Christian Loitsch
Details
the wrapper skeleton (rc.skel-1.1a,293 bytes, text/plain)
2003-05-10 10:24 UTC, Christian Loitsch
Details
a patch adding the mask-possibility (wondershaper-1.1a-gentoo.patch,2.15 KB, patch)
2003-05-10 10:25 UTC, Christian Loitsch
Details | Diff
Fixed wondershaper-1.1a.ebuild (wondershaper-1.1a.ebuild,1.56 KB, text/plain)
2006-08-02 09:45 UTC, Michael Cargile
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Loitsch 2003-05-10 10:23:50 UTC
a wrapper for the wondershaper ip-traffic-shaping script.


Reproducible: Always
Steps to Reproduce:




i added the possibility to specify a mask when specifying the ports -->
16384/C000 matches all ports from 16384-32767
this is really useful for mldonkey :)

I will try to feed this patch to the author.
Comment 1 Christian Loitsch 2003-05-10 10:24:21 UTC
Created attachment 11757 [details]
the ebulid
Comment 2 Christian Loitsch 2003-05-10 10:24:52 UTC
Created attachment 11758 [details]
the wrapper skeleton
Comment 3 Christian Loitsch 2003-05-10 10:25:31 UTC
Created attachment 11759 [details, diff]
a patch adding the mask-possibility
Comment 4 Christian Loitsch 2003-06-06 17:51:16 UTC
If a connection is restartet (for instance in Frace ADSL connections are cut every 24h), wondershaper does NOT restart itself.  You need something like
/etc/init.d/wondershaper restart
in your /etc/ppp/ip-up

If I find some time (highly unlikely the next 3 weeks), I will update the ebuild to propose such an config option.
Comment 5 SpanKY gentoo-dev 2003-07-29 17:35:30 UTC
actually if you write the packetshaper rules correctly you dont need to restart it ... 
in other words, bind to your ppp0 interface rather than the actual IP you get 
Comment 6 Christian Loitsch 2003-07-30 02:58:42 UTC
i can't access my server right now, but I think I did bind it to ppp.  And even if not, I have a static IP 
address.  In any way wondershaper did not really work for me.  It did make a difference, but for 
instance having multiple ftp connections at the same time and keeping the ping low was only 
possible when I halved my download speed :(    (ADSL 512/128 over Alcatel Speedtouch Home)
Comment 7 SpanKY gentoo-dev 2003-07-30 15:48:12 UTC
odd, i wonder if your rules were flushed or something ... 
 
i did build a set of packet shaping rules after reviewing wondershaper and the 
ADSL Bandwidth Limiting HOWTO ... 
 
it doesnt work as perfectly as you may want, but it really works about as well as 
should be expected considering the protocols/hardware/infrastructure/etc... that 
you're working with ... 
 
with dsl the best you can hope for is not having your upload severly affect your 
download.  trying to control your download will just bring you headaches :) 
Comment 8 Luke-Jr 2003-08-25 19:49:34 UTC
Doesn't wondershaper DEPEND on *anything*? Even if not, I believe it still needs a DEPEND="" line.
Comment 9 Christian Loitsch 2003-08-28 06:27:54 UTC
it depends on sys-apps/iproute
I forgot to add this line, sorry
Comment 10 solar (RETIRED) gentoo-dev 2003-10-23 08:47:15 UTC
Tell you what. Fix up the ebuild get it all in order and I'll merge on your
behalf.
Comment 11 solar (RETIRED) gentoo-dev 2003-11-25 00:04:55 UTC
Not not..

Bouncing back to bug-wranglers perhaps another dev might want/need this functionality.
Comment 12 Per Cederberg 2004-07-30 17:52:31 UTC
Is this one going into portage? Or has it been rejected? Or are there any better alternatives?

Just installed it on a box with a 2.6.7-gentoo-r11 kernel and iproute2 (2.4.7.20020116), and everything seems to run really smooth and nicely. The config isn't so very well-documented, however, so some commented configuration examples would be nice. Like this for example:

# low priority source ports
NOPRIOPORTSRC=
#NOPRIOPORTSRC="80"                    # Web server traffic
#NOPRIOPORTSRC="6881 6882 6883 6884"   # BitTorrent traffic
#NOPRIOPORTSRC="16384/C000"            # Mldonkey ports 16384-32767

(The above are just examples to clarify the usage.)
Comment 13 Michael Cargile 2006-08-02 09:45:39 UTC
Created attachment 93276 [details]
Fixed wondershaper-1.1a.ebuild

Added iproute dependency and ~amd64 to the keywords.

I have used this on my amd64 for a little while now. I do not know how stable it is though thus ~amd64.

This might seem obvious to some but it was not to me so I will just say that the wrapper skeleton needs to be named rc.skel-1.1a, the patch needs to be named wondershaper-1.1a-gentoo.patch, and both need to be in the files subdirectory of where ever you put this in your portage overlay.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-09-14 14:03:18 UTC
Last release in 2002. Sorry, but we are not adding this.