Questions tagged [tc]
Tc is used to configure Traffic Control in the Linux kernel.
148
questions
0
votes
0
answers
39
views
How to exclude a subnet from TC qdisc rule?
I need to add an artificial delay to outgoing traffic from my server's eth0 interface using the Linux command tc (Traffic Control). I would like to add such a delay to all packets except those ...
0
votes
0
answers
22
views
Can tc or nftables change the SA/TA in 802.11 frame?
I am looking for a way to change the SA/TA on a Wi-Fi frame. I need this because I have a VM (running with QEMU and vmnet-bridged) in a MacBook that connects to a Wi-Fi interface, and a laptop ...
0
votes
0
answers
77
views
Traffic control - bandwidth and jitter colidation for Quic
I am currently experimenting with the Quic and TCP protocols, aiming to simulate real network conditions using TC. However, I encountered an issue when attempting to set the bandwidth to 32mbit, with ...
1
vote
1
answer
139
views
Traffic shaping ineffective on tun device
I am developing a tunnel application that will provide a low-latency, variable bandwidth link. This will be operating in a system that requires traffic prioritization. However, while traffic towards ...
0
votes
0
answers
256
views
Controlling udp traffic with linux tc command
Setup: A client laptop (mac) connected to a Wi-Fi router wirelessly (atheros NIC with dd-wrt firmware). A server (linux) is directly connected to the router over ethernet interface. Now I am testing ...
0
votes
0
answers
43
views
How can I delete just one queue in htb?
I would like to delete just one queue in htb when having two. My script would be the following one:
TC=/sbin/tc
IF=wlan0 # Interface
DNLD=1mbit # DOWNLOAD Limit
UPLD=1mbit ...
0
votes
1
answer
86
views
Changing packet payload with tc
How can tc be used to match a particular payload of an ingress packet, e.g., if the first 32 bits of payload of an IP/UDP packet are equal to some constant $c, the value $c should be changed to $d? ...
1
vote
1
answer
258
views
MAC address rewriting using tc
I am using tc to change the MAC address of incoming packets on a TAP interface (tap0) as follows where mac_org is the MAC address of a guest in a QEMU virtual machine and mac_new is a different MAC ...
1
vote
1
answer
535
views
Redirect port using TC BPF
I'm want to use TC BPF to redirect incoming traffic from port 80 to port 8080.
Below is my own code, but I've also tried the example from man 8 tc-bpf (search for 8080) and I get the same result.
#...
1
vote
0
answers
244
views
How to set bandwidth limit using linux tc
In my linux router:
interface eth1 total bandwidth is 1gbit
I want to divide 1140kbit to GroupA, divide 150kbit to GroupB
Set users 10.10.10.158, 10.10.21.5, 10.10.21.6 to GroupB
Each user has no ...
0
votes
2
answers
250
views
Can netfilter act as a DHCP relay?
I'm wondering whether instead of using a DHCP relay netfilter (be that tc or nftables) can be used to route DHCP broadcast packets to a Docker container attached to a bridge.
The reasoning for this is ...
0
votes
0
answers
44
views
Can no longer ping containers after setting TBF qdisc on Docker0
I am trying to use the tc command to manipulate traffic on the docker0 interface.
I run the commands
tc qdisc del dev docker0 root
tc qdisc add dev docker0 root handle 1: tbf rate 100mbps burst 1600 ...
1
vote
0
answers
746
views
tc filter - error talking to the kernel
I am trying to add a tc flower filter for the geneve protocol and I am getting this error:
% sudo tc filter add dev gnv0 protocol ip parent ffff: \
flower geneve_opts 0108:01:020000000000000000/...
1
vote
1
answer
482
views
How to police ingress (input) packets belonging to a cgroup with iptables and tc?
I am trying to limit the download (ingress) rate for a certain app within a cgroup.
I was able to limit the upload (egress) rate successfully by marking app's OUTPUT packets in iptables and then set a ...
0
votes
0
answers
404
views
router command to change bandwidth limit for a MAC address
I use DD-WRT to limit WAN bandwidth to one MAC address using DD-WRT's web interface.
The key entry in the web interface (in "NAT/QoS" tab's "QOS" tab) is "MAC priority",
...