📜  wondershaper - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:21:12.164000             🧑  作者: Mango

Introduction to Wondershaper - Shell/Bash

What is Wondershaper?

Wondershaper is a shell script that helps in managing the traffic shaping of a Linux network interface. It allows you to prioritize network traffic and limit the bandwidth on an interface, which can be useful in managing a network with limited bandwidth.

Wondershaper logo

Installation

Wondershaper can be installed on Linux using the following command:

sudo apt-get install wondershaper
Usage

Wondershaper can be used to limit the bandwidth of a network interface using the following command:

sudo wondershaper <interface> <downspeed> <upspeed>

Where:

  • "" is the network interface name
  • "" is the download speed limit in Kbps
  • "" is the upload speed limit in Kbps

For example, to limit the download speed of the "eth0" interface to 1 Mbps and upload speed to 512 Kbps, use the following command:

sudo wondershaper eth0 1000 512

Wondershaper also provides other options to manage network traffic. To see the full list of options, use the following command:

wondershaper --help
Conclusion

Wondershaper is a useful tool for managing network traffic on Linux systems. It provides a simple and effective way to limit bandwidth and prioritize network traffic. If you are a network administrator or a Linux user looking to optimize your network performance, Wondershaper is definitely worth exploring.