Questions tagged [tc]

TC is the linux tool used to manipulate the traffic control functionality in the kernel.

TC is the linux tool used to manipulate the traffic control functionality in the kernel.

241 questions
2
votes
0 answers

tc rules block traffic from some hosts at network

I have a problem I can not solve. The script, which sets the rules for traffic shaping is blocking the traffic from some hosts.If I remove all the rules, then it works. I can not understand why? Here is my…
user139430
2
votes
1 answer

Linux income filtering based on private destination IP address

I am trying to set up a QoS script in my OpenWRT box so that traffic coming from the Internet is classified into a low prio and a high prio class. The criteria to classify traffic is its destination IP address within my home network, i.e. a private…
Dani Camps
  • 301
  • 6
  • 11
2
votes
3 answers

QOS on ubuntu server

I want to run the following script on ubuntu server. eth1 is NAT interface, and eth2 is the WAN interface which has a static public ip: TCA="tc class add dev eth2" TFA="tc filter add dev eth2" TQA="tc qdisc add dev eth2" SFQ="sfq perturb 10" tc…
nixnotwin
  • 1,543
  • 5
  • 35
  • 55
2
votes
1 answer

How to monitor qdisc bandwidth utilization

I have created a script to shape my traffic using tc. Is there any tool in Linux which will help me to visualize and monitor qdisc bandwidth utilization ?
Supratik
  • 2,154
  • 10
  • 51
  • 66
2
votes
1 answer

traffic shaping for certain (local) users

i'm using ubuntu 10.10 i've a local backup user called "backup". :) i would like to give this user just a bandwidth of 1Mbit. No matter which software wants to connect to the network. this solution limits: iptables -t mangle -A OUTPUT -p tcp -m…
JMW
  • 1,463
  • 4
  • 19
  • 27
2
votes
3 answers

Shaping outbound Traffic to Control Download Speeds with Linux

I have a situation where a server makes lots of requests from big webservers all at the same time. Currently, I have not control over the amount of requests or the rate of the requests from the application that does this. The responses from these…
Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448
2
votes
1 answer

traffic control (tc) filter not working

i am using Debian and am trying to limit the upload-bandwidth on an ip basis. The configuration is the following: #!/bin/bash tc=/sbin/tc $tc qdisc del dev eth0 root 2> /dev/null > /dev/null $tc qdisc del dev eth0 ingress 2> /dev/null >…
2
votes
1 answer

linux traffic control qdisc mq pfifo_fast: where to put netem?

When I list out the qdiscs on my system, I see an mq qdisc and some pfifo_fast qdiscs. The pfifo_fast ones all seem to have a major number that is the same as their parent. Or am I misunderstanding the hierarchy or seeing a hierarchy where there…
2
votes
1 answer

Linux traffic control u32 hashtable filters based on MAC address

I am currently working with a traffic shaping Linux node. The rule set has grown to about 2500 hosts, all identified specifically by MAC address. The filter configuration is "basic", meaning that on average, 1250 rules must be tested before a packet…
2
votes
0 answers

tc filter does not apply between a virtual interface and a physical one

I am working on a project aiming at managing a network between several components. For project purpose, we want to test some bad network effects using netem. The used commands are the following ones: $ tc qdisc add dev virtualif1 root handle 1:…
2
votes
0 answers

Using tc to delay packets to several ports

After reading several pages like this this and without having a really deep knowledge about the kernel Linux, I am able to filter up to 3 ports using just the three first leaves of the tree. tc qdisc del dev enp0s3 root //clear any previous…
David_helo
  • 71
  • 5
2
votes
0 answers

TC Filter With BPF and NFTables Packet Marking

I made a TC BPF ingress program and I want it to process specific packets only marked by NFTables. Here's my NFTables table that marks the specific packets: table ip compressor_tc { chain prerouting { type nat hook prerouting…
2
votes
1 answer

Unable to set bandwidth limit on ingress wireless interface with netem and ifb

I am trying to limit the bandwidth on the ingress of a wireless interface using an IFB virtual interface. I followed the instructions here Summary of the steps: Bringing up ifb: sudo modprobe ifb numifbs=1 ip link set dev ifb0 up redirect ingress…
1
vote
1 answer

Performing tasks and custom logic on network packets

I'm looking for a way to process packets in a Linux server in a particular fashion - I need to run some custom logic on every packet, then (possibly) take some actions on the packets and let the kernel route it as it wants. My use specific use cases…
FitzChivalry
  • 187
  • 10
1
vote
0 answers

Why does adding a single class to the htb qdisc in tc slow down my connection?

I'm running tc with the command: sudo tc qdisc add dev eth0 root handle 1: htb default 1. I then proceed to add a single class like so: sudo tc class add dev eth0 parent 1:0 classid 1:1 htb rate 100% prio 0 My understanding is that, since class…