Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 350 Bytes

traffic-shaping.md

File metadata and controls

13 lines (10 loc) · 350 Bytes
  • using tbf:
tc qdisc add dev <nic> root tbf rate 1mbit burst 10kb latency 70ms
  • using htb to limit http traffic:
tc qdisc add dev <nic> root handle 1: htb default 30
tc class add dev <nic> parent 1: classid 1:1 htb rate 1mbit ceil 10kbps prio 0
tc filter add dev <nic> parent 1: prio 0 protocol ip handle 1 fw flowid 1:1