network rate limit for RX or TX

debian10

Active Member
Jul 30, 2019
30
0
26
39
Hello
As we know, it is possible to limit the network card to a certain speed on a KVM VM.
But both receiving and sending are limited. Is there a way to limit only receiving, for example?
Thanks
 
It is not possible via GUI.

It is possible to do it manually, though. You can use the tc command to configure traffic shaping on the network interface. This will allow you to specify separate limits for incoming and outgoing traffic.

To limit the incoming network speed, you can use the following command:

Code:
tc class add dev eth0 parent 1:1 classid 1:10 htb rate <limit>kbps

Replace eth0 with the name of the network interface you want to limit, and <limit> with the maximum incoming speed you want to allow. This will create a traffic class with a rate limit of <limit> kilobits per second for incoming traffic on the specified interface.

You can also limit the outgoing network speed in a similar way:

Code:
tc class add dev eth0 parent 1:1 classid 1:20 htb rate <limit>kbps

This will create a traffic class with a rate limit of <limit> kilobits per second for outgoing traffic on the specified interface.

I hope this helps! Let me know if you have any other questions.
 
Last edited:
  • Like
Reactions: debian10

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!