Network speed limiting.

I am looking for a way to limit the speed of my network connection to simulating a modem connection, 28.8k like my first modem.

I found NetEm and tc command, is this a good choice?

Posted in: s/Linux
🚂 MrSVCD

May 13 · 7 months ago

2 Comments ↓

🐙 norayr · 2025-05-13 at 20:28:

for easy use there is python package that works with tc, it is called tcconfig.

it may not be packaged, but you can install it via virtualenv and pip.

then

# tcset eth0 --direction incoming --rate 28Kbps

i guess should work.

🚂 MrSVCD [OP] · 2025-05-15 at 14:36:

My search fu got me this finally:

— https://manpages.ubuntu.com/manpages/trusty/man8/wondershaper.8.html

It works on download speeds as I want but somethis is weird with the upload speed, but I can probably fix it since it is only a bash script.