Views:
5,054β
Votes: 2β
β
Solution
Tag :
wireless
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/848031
Title:
Cut or limit internet connection to other wifi devices
ID:
/2016/11/11/Cut-or-limit-internet-connection-to-other-wifi-devices
Created:
November 11, 2016
Edited: April 13, 2017
Upload:
September 20, 2023
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
ethtool
You can change the aggregate speed of the NIC port using ethtool
.
$ sudo ethtool -s eth0 speed 10
This will set the port to 10MB, for example.
wondershaper
You can also use the tool wondershaper
to do it as well. NOTE: Speed should be in kilobits per second.
$ sudo wondershaper eth1 downspeed upspeed
For example:
$ sudo wondershaper eth0 10000 280
trickle
A 3rd option is trickle
. Trickle can be used per program by users or as a daemon that throttles the NIC completely.
User mode - trickle man page
$ sudo trickle -d 20 -u 20 wget http://www.google.com/bigfile
Will throttle 20K/s for both up and down traffic for just this wget
, everything else will not be limited.
Daemon mode - trickled man page
In daemon mode, trickled can limit a group of programs to a fixed limit of bandwidth. To start the daemon, run the trickled command:
$ sudo trickled -d 20 -u 20
pyshaper
A 4th option is pyshaper
. Itβs a unique option among the choices in that it includes GUI and it dynamically monitors and sets the bandwidth over time. You can check out the pyshaper man pagefor more details.
Above copied from this answer: StackExchange - limit outgoing bandwidth on a specific interface