[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#308070: marked as done (Reenabling the NOPRIO* options of wondershaper. Some more informative output.)



Your message dated Tue, 04 Feb 2025 03:24:31 +0000
with message-id <[🔎] E1tf9Y7-000F2B-5F@fasolo.debian.org>
and subject line Bug#1095040: Removed package(s) from unstable
has caused the Debian Bug report #308070,
regarding Reenabling the NOPRIO* options of wondershaper. Some more informative output.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
308070: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=308070
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: wondershaper
Version: 1.1a-4
Severity: wishlist

*** Please type your report below this line ***
Hi,

I added some echos to wondershaper allowing to see it progressing through
the setup of the linux TC tables.
I also commented out the NOPRIO* lines in wshaper and wshaper.htb because
they prevent the script from accepting a list of non prioritized hosts or
ports.
The appended patch also contains the neccessary changes to the documentation
of wondershaper.

Best regards,

Onno Kortmann

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (300, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages wondershaper depends on:
ii  iproute                       20041019-3 Professional tools to control the 

-- no debconf information
diff -Nudr wondershaper-1.1a.orig/debian/README.Debian wondershaper-1.1a/debian/README.Debian
--- wondershaper-1.1a.orig/debian/README.Debian	2005-05-07 18:45:52.554899708 +0200
+++ wondershaper-1.1a/debian/README.Debian	2005-05-07 19:01:31.586174918 +0200
@@ -9,8 +9,9 @@
 STEP 4 Post-test
 STEP 5 Controling the wondershaper
 STEP 6 Permanent setup
-STEP 7 Monitoring the wondershaper
-STEP 8 Send email to vlm@debian.org
+STEP 7 Further configuration
+STEP 8 Monitoring the wondershaper
+STEP 9 Send email to vlm@debian.org
 
 STEP 0 Read this entire document before continuing
 
@@ -161,12 +162,26 @@
 system, remember that you will need to delete the lines you added to 
 the interfaces file, either manually or by using the backup file you made.
 
-STEP 7 Monitoring the wondershaper
+STEP 7 Further configuration
+
+There are several environment variables which make it possible to 
+fine-tune the wonder shaper. For example, you could run
+wondershaper this way:
+
+$ NOPRIOPORTSRC=873 wondershaper <iface> <down> <up>
+
+This would help if you have a site that provides data via rsync 
+but you do not want to slow down your other traffic by this. 
+There is also the variable NOPRIOPORTDST for destination ports and
+the variables NOPRIOHOSTSRC/-DST for certain hosts you want to
+"downgrade".
+
+STEP 8 Monitoring the wondershaper
 
 Assuming your ISP is connected to eth0, you can examine your traffic
 shaping stats by running "wondershaper eth0" as root.
 
-STEP 8 Send email to vlm@debian.org
+STEP 9 Send email to vlm@debian.org
 
 The last step is optional.
 Please send an email to vlm@debian.org, including your before and 
diff -Nudr wondershaper-1.1a.orig/wshaper wondershaper-1.1a/wshaper
--- wondershaper-1.1a.orig/wshaper	2005-05-07 18:45:52.553899899 +0200
+++ wondershaper-1.1a/wshaper	2005-05-07 18:47:35.245372336 +0200
@@ -11,6 +11,7 @@
 fi
 
 if [ $# == 1 ]; then
+  echo "Status of traffic shaping:"
   tc -s qdisc ls dev $1
   tc -s class ls dev $1
   exit
@@ -29,6 +30,8 @@
   exit
 fi
 
+echo "Installing wondershaper..."
+
 # please read the README before filling out these values 
 #
 # Set the following values to somewhat less than your actual download
@@ -39,16 +42,16 @@
 
 # low priority OUTGOING traffic - you can leave this blank if you want
 # low priority source netmasks
-NOPRIOHOSTSRC=
+#NOPRIOHOSTSRC=
 
 # low priority destination netmasks
-NOPRIOHOSTDST=
+#NOPRIOHOSTDST=
 
 # low priority source ports
-NOPRIOPORTSRC=
+#NOPRIOPORTSRC=
 
 # low priority destination ports
-NOPRIOPORTDST=
+#NOPRIOPORTDST=
 
 # Now remove the following two lines :-)
 
@@ -138,24 +141,28 @@
 # some traffic however suffers a worse fate
 for a in $NOPRIOPORTDST
 do
+	echo Setting :$a as a non-prioritized destination port.
 	tc filter add dev $DEV parent 1: protocol ip prio 14 u32 \
 	   match ip dport $a 0xffff flowid 1:30
 done
 
 for a in $NOPRIOPORTSRC
 do
+	echo Setting :$a as a non-prioritized source port.
  	tc filter add dev $DEV parent 1: protocol ip prio 15 u32 \
 	   match ip sport $a 0xffff flowid 1:30
 done
 
 for a in $NOPRIOHOSTSRC
 do
+	echo Setting $a as a non-prioritized source host.
  	tc filter add dev $DEV parent 1: protocol ip prio 16 u32 \
 	   match ip src $a flowid 1:30
 done
 
 for a in $NOPRIOHOSTDST
 do
+	echo Setting $a as a non-prioritized destination host.
  	tc filter add dev $DEV parent 1: protocol ip prio 17 u32 \
 	   match ip dst $a flowid 1:30
 done
diff -Nudr wondershaper-1.1a.orig/wshaper.htb wondershaper-1.1a/wshaper.htb
--- wondershaper-1.1a.orig/wshaper.htb	2002-04-16 16:26:51.000000000 +0200
+++ wondershaper-1.1a/wshaper.htb	2005-05-07 18:48:03.311034638 +0200
@@ -11,16 +11,17 @@
 
 # low priority OUTGOING traffic - you can leave this blank if you want
 # low priority source netmasks
-NOPRIOHOSTSRC=
+  echo "Status of traffic shaping:"
+#NOPRIOHOSTSRC=
 
 # low priority destination netmasks
-NOPRIOHOSTDST=
+#NOPRIOHOSTDST=
 
 # low priority source ports
-NOPRIOPORTSRC=
+#NOPRIOPORTSRC=
 
 # low priority destination ports
-NOPRIOPORTDST=
+#NOPRIOPORTDST=
 
 
 # Now remove the following two lines :-)
@@ -29,6 +30,8 @@
 exit
 
 if [ "$1" = "status" ]
+echo "Installing wondershaper..."
+
 then
 	tc -s qdisc ls dev $DEV
 	tc -s class ls dev $DEV
@@ -138,10 +141,14 @@
 
 tc qdisc add dev $DEV handle ffff: ingress
 
+	echo Setting :$a as a non-prioritized destination port.
 # filter *everything* to it (0.0.0.0/0), drop everything that's
 # coming in too fast:
 
 tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 match ip src \
    0.0.0.0/0 police rate ${DOWNLINK}kbit burst 10k drop flowid :1
 
+	echo Setting :$a as a non-prioritized source port.
 
+	echo Setting $a as a non-prioritized source host.
+	echo Setting $a as a non-prioritized destination host.

--- End Message ---
--- Begin Message ---
Version: 1.1a-12+rm

Dear submitter,

as the package wondershaper has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1095040

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Paul Tagliamonte (the ftpmaster behind the curtain)

--- End Message ---

Reply to: