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).
--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.
The documentation for tcset has the following:
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.