Last active
May 18, 2021 21:36
-
-
Save vy/51df9ff6552e7d73a851 to your computer and use it in GitHub Desktop.
Add 5s delay to outgoing traffic from port 34001
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tc qdisc add dev eth0 root handle 1: prio | |
tc qdisc add dev eth0 parent 1:3 handle 30: netem delay 5s | |
tc filter add dev eth0 protocol ip parent 1:0 u32 match ip sport 34001 0xffff flowid 1:3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when i tried executing this command,
sudo tc qdisc add dev eth0 parent 1:3 handle 30: netem delay 5s
im getting this error.
Error: Specified qdisc not found.