The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 5,251β€…    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: April 8, 2024    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

⇧ How do I get rid of /sys/kernel/debug/tracing? notify-send (alert) not popping-up GUI bubble messages  β‡©