Alternatively, to pull and install the latest updates, you need to clone the GitHub repository of wondershaper to your system, move into the local repository and install it using the following commands. Note that you should have the git command line tool installed:
It is also possible to run wondershaper as a service, where you define the parameters for shaping bandwidth in a config file. This enables wondershaper to start at boot time and limit bandwidth usage at all times, when the system is on, as explained in the next section.
wondershaper
Under this mode, you need to set the interface, upload and download rates in the wondershaper configuration file located at /etc/conf.d/wondershaper. You can open this file for editing using your favorite CLI editor as shown.
I could sit here and rewrite wondershaper to keep the strength of it asa coding example of how to use filtering, etc. OR: I could point you atthe SQM code in cerowrt, or the traffic shaping example ingentoo .
149.20.63.30.rrul_noclassification-wondershaper-fixedecn.svg (image/svg+xml) wondershaper
149.20.63.30.rrul_noclassification-ethernet.svg (image/svg+xml) ceroshaper
wshaper-800-220.svg (image/svg+xml) wondershaper at 800kbit 220 kbit
3band-800-220.svg (image/svg+xml)
nfq_codel-800-220-ecn.svg (image/svg+xml) nfq_codel
tc has recently been reported to not work properly with newer version of NetworkManager. The bug has been reported to the Arch Linux bugtracker and is also discussed on the wondershaper GitHub pages. If your experiencing this issue too, please report in on the bug at the link below to increase its visibility.
Before, without wondershaper, while uploading:round-trip min/avg/max = 2041.4/2332.1/2427.6 msAfter, with wondershaper, during 220kbit/s upload:round-trip min/avg/max = 15.7/51.8/79.9 ms* Download version 1.1a, released 16th ofApril 2002.* Download version 1.0, released 5th ofMarch 2002.Works on Linux 2.4 & higher.If you get an error in the last two lines of the script,try this version of iproute instead: -routing/iproute2-2.4.7-now-ss010824.tar.gz.GoalsI attempted to create the holy grail:* Maintain low latency for interfactive traffic at all timesThis means that downloading or uploading files should not disturb SSH oreven telnet. These are the most important things, even 200ms latency issluggish to work over.* Allow 'surfing' at reasonable speeds while up or downloadingEven though http is 'bulk' traffic, other traffic should not drown it outtoo much. * Make sure uploads don't harm downloads, and the other way aroundThis is a much observed phenomenon where upstream traffic simply destroysdownload speed. It turns out that all this is possible, at the cost of atiny bit of bandwidth. The reason that uploads, downloads and ssh hurteachother is the presence of large queues in many domestic access deviceslike cable or DSL modems.
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 uploadsIt does this by: * Limiting upload speed slightly, to eliminate queues * Limiting download speed, while allowing bursts, to eliminate queues * Interactive traffic skips the queue * ACKs and tiny packets skip the queueConfiguring the wondershaper requires you to accurately and preciselydetermine your consistent upload and download speeds.The wondershaper is the simplest, easiest to use, entry level, trafficshaping script provided by Debian.After installing this package, read highly the detailed instructions:/usr/share/doc/wondershaper/README.Debian Tags: System Administration: Configuration Tool, User Interface: Command Line, Networking: network::configuration, protocol::ip, Role: Program, Scope: Utility, Purpose: Configuration
I downloaded wondershaper because i want limit my wifi card to 600/30kb/s. In debian OS i type only: wondershaper wlan0 4800 300 and all works. In opensuse this not works this way.I know that there are 2 files/etc/init.d/wondershaper/etc/sysconfig/wondershaper
and now i have problem with start wondershaper service.ja@ja-pc:> sudo /etc/init.d/wondershaper start[sudo] password for root:redirecting to systemctl start wondershaper.serviceFailed to start wondershaper.service: Unit wondershaper.service not found.ja@ja-pc:>
If you have installed Wondershaper by cloning its GitHub repository, there is a configuration file named wondershaper.conf exists in /etc/conf.d/ location. Make sure you have set the download or upload rates by modifying the appropriate values(network card name, download/upload rate) in this file.
# Error$ sudo wondershaper wlp3s0 1000 300RTNETLINK answers: Invalid argumentWe have an error talking to the kernelRTNETLINK answers: Invalid argumentWe have an error talking to the kernelRTNETLINK answers: Invalid argumentWe have an error talking to the kernelRTNETLINK answers: Invalid argumentWe have an error talking to the kernelRTNETLINK answers: Invalid argumentWe have an error talking to the kernel
# Package info$ apt show wondershaperPackage: wondershaperVersion: 1.1a-8Priority: extraSection: universe/netOrigin: UbuntuMaintainer: Ubuntu Developers Original-Maintainer: Vince Mulhollon Bugs: +filebugInstalled-Size: 55,3 kBDepends: iproute2 iprouteHomepage: Download-Size: 14,8 kBAPT-Manual-Installed: yesAPT-Sources: -archive.locaweb.com.br/ubuntu artful/universe amd64 Packages
Neither `iproute2` nor `tc` or other options mentioned in related questions are as easy to use as `wondershaper`. I mean, `wondershaper` can be used with a single and simple command; the most difficult part for the user is to discover the name of the interface he wants to limit/shape.
I can confirm that if you simply download the wondershaper from the magnfic0 repository, things work fine. If that script could be used as the upstream source then patched up for Debian standards (relocate to /sbin etc) then the ubuntu repositories would contain a wondershaper that worked as expected
And, I think, the reason why wondershaper isn't included as default is the same as why you don't get Xorg running out of the box after install. In Arch you have the control, and it is for you to choose what you want and what you don't need.
On most distributions, wondershaper will be available as a package with its own name. I found a few distributions that didn't provide it (NixOS at least), and some are providing various wondershaper versions.
Wondershaper requires the download and upload bandwidths to be set in kb/s (kilo bits per second, not kilo bytes). I personally only know my bandwidth in kB/s which is a 1/8 of its kb/s equivalent. My home connection is 1600 kB/s max in download and 95 kB/s max in upload, I can use wondershaper to limit to 1000 / 50 so it won't affect much my other devices on my network.
I use a multiplication to convert from kB/s to kb/s and still keep the command understandable to me. Once a limit is set, wondershaper can be used to clear the limit to get full bandwidth available again.
Hi,i really want to use your updated wondershaper, but i came across some issues. While using original debian package i get it working, but using your drop-in replacement causes no response for
This command will un-install wondershaper on the server. When you run this command, you will be asked if you are sure that you want to remove wondershaper, so you have to manually confirm that you want to do this.
This command will un-install wondershaper on the server. When you run this command with th e -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove wondershaper when using the -y flag.
This command will update wondershaper to the latest version. When you run this command, you will be asked if you are sure that you want to remove wondershaper, so you have to manually confirm that you want to do this.
This command will update wondershaper to the latest version. When you run this command with the -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove wondershaper when using the -y flag.
This command will show you the dependencies for wondershaper. Thankfully, when using Yum, if dependencies are required, these are also installed at the same time so you don't have to worry too much about that.
This command will check if there is an update waiting on wondershaper. When you run this command this will return nothing if there is nothing to update, or, will return the package name if the package is due to be updated.
There may be cases when you need to limit network bandwidth in Linux. Learn how to limit the network bandwidth in Linux globally and application-specifically with two simple programs: wondershaper and trickle.
Hopefully, this installation goes without errors for you. It is a less reliable way to install Wondershaper than using the version provided with your distro. I have tested this installation on Ubuntu 20.04.3, it works fine. But if you have problems with the Github version, remove it by running this command from the wondershaper git-cloned directory:
If you decide to keep the GitHub version of Wondershaper, keep in mind that unlike the version included with the distro, it will not update itself when the new version is released. You need to update it manually. You can do it by entering the wondershaper folder, pulling the updates from GitHub, and re-installing:
Now, when you know the syntax of wondershaper, you only need to find out the network interface name to set the limits on it. In most modern Linux systems, you can list the available network interfaces with this command: 2ff7e9595c
Comentários