thombashi / tcconfig

A tc command wrapper. Make it easy to set up traffic control of network bandwidth/latency/packet-loss/packet-corruption/etc. to a network-interface/Docker-container(veth).
https://tcconfig.rtfd.io/
MIT License
790 stars 84 forks source link

Documentation for tcset "--direction incoming" appears to be incorrect (?) #169

Open ReubenM opened 1 year ago

ReubenM commented 1 year ago

The documentation for tcset has the following:

  --src-network SRC_NETWORK
                        specify source IP-address/network that applies traffic
                        control. defaults to any. this option has no effect
                        when executing with "--direction incoming" option.
                        note: this option required to execute with the
                        --iptables option when using tbf algorithm.

This, and other documentation would make it appear that when setting rules for ingress (--direction incoming) we should use the "--network" argument to set the filter for which incoming packets to apply rules to. However this has no effect when I'm attempting to set delay. Using the --src-network argument instead does have effect and flips the src/dst parameters when defining the filter, achieving the desired result.