Questions tagged [tc]
TC is the linux tool used to manipulate the traffic control functionality in the kernel.
237
questions
1
vote
0
answers
31
views
Getting the TC filter for TCP dest port to work
I was try to configure a TC filter to act upon any TCP packet that is going to 5201.
My statement goes as follows:
$ tc filter add dev enp1s0 protocol ip parent 1:0 u32 match tcp dst 0x1451 0xffff ...
1
vote
1
answer
22
views
TC filter not working properly
I have an OpenVPN server where I control traffic from clients to server subnets using iptables. Now, additionally, I want to control bandwidth of the network using tc.
Here are the class definitions:
...
1
vote
2
answers
198
views
Limit bandwidth of a physical interface, turn a 10G link into a 1G link
I want a given network card to behave as if it were a slower network card. Like if the 1G interface in my laptop would actually be a 100M or 10M interface. One way of doing that is of course dig out ...
0
votes
2
answers
348
views
Both incoming and outgoing packets is delayed even though i target incoming only with tc command
I want to deay incoming packets from a particular ip with tc command. I tried
sudo tc qdisc add dev eth0 root handle 1: prio
sudo tc qdisc add dev eth0 parent 1:3 handle 10: netem delay 500ms
sudo tc ...
0
votes
2
answers
109
views
Share bandwidth equally
I have a server with 100 Mbps bandwidth.
Clients with dynamic IPs could connect to web server and download large files
There are maximum 10 clients which can download simultaneously
And I guarantee 10 ...
0
votes
1
answer
239
views
How to handle QoS(traffic control) based on physical interface of virtual bridge?
I have a requirement to limit the traffic rate based on different interfaces of the router, such as controlling the upload speed of ssid1 to 10mbps, download speed to 20mbps, lan1 upload speed to ...
1
vote
1
answer
226
views
Using cgroup & tc in linux seems to NOT apply exactly my rates: 10x discrepancy
I'm using the "standard" way that I found everywhere on the internet (including ServerFault) to try and limit the bandwidth of a process, using cgroups & tc.
What I see in practice is ...
1
vote
0
answers
857
views
How to limit Wireguard bandwidth
I have Debian 11 server with installed Wireguard with wg0 interface and 3 peers. Server bandwidth speed is 100 MBit and traffic is around 500 GB per month.
What I need is: these 3 peers can use 100 GB/...
0
votes
1
answer
515
views
linux tc + vlan interface
This is my tc simple script. It limit bandwidth based on source ip address and use hashing filter based on /24 subnet. This example filter works but only when this example subnet 10.118.0.0/24 is add ...
0
votes
0
answers
306
views
Any way to limit bandwidth per IP in network behind linux router
I whant to limit bandwith of clients from network behind my linux based NAT gateway.
My clints is connected via wifi or directly via ethernet to router and receiving their IP address from DHCP.
I want ...
0
votes
1
answer
2k
views
Limit bandwidth for incoming packets to specific ip and port
I have a Linux server application running on a specific IP and PORT.
Incoming packets need to be manipulated and put into an nfqueue based on sources and ports, for example:
iptables -t raw -A ...
2
votes
1
answer
935
views
Linux Traffic Control: What is the difference between qdisc multiq and mq?
By default Linux creates a qdisc mq. I am configuring it on my computer to change some parameters but I found that there are 2 qdiscs that seem to be the same: mq and multiq.
I can't find any ...
0
votes
1
answer
310
views
Huge lag with linux Traffic Control - TBF failed?
I've been working with Ubuntu18.04 and trying to shape the traffic with linux tc. Things went well in the passed few months. Here's my commands:
# init queue
sudo tc qdisc add dev enp2s0 root handle 1:...
2
votes
1
answer
2k
views
How to apply `fq_codel` to balance traffic in multiple VLAN connections?
I have an Ubuntu server connected to multiple VLAN networks over a single physical 1 Gbps network port. The network connections are configured via /etc/network/interfaces like this:
auto lo
iface lo ...
0
votes
1
answer
881
views
HTB "rate" parameter limits available bandwidth
Good day,
I have the following situation: 4 TCP streams of data from one machine to another. Each streams has its own destination TCP Port. 4 streams have different priorities : high, medium, low, ...