New answers tagged

-1

Just run this script... #!/bin/bash while true; do t=$(($RANDOM%2500 + 500)) b=$(($RANDOM%150 + 50)) ping -c 1 -s $b $1 sleep $(($t/1000)) done


0

In your case, tc won't work, because you would need to create the 2^24 = 16777216 buckets in advance. Alternatives are a packet per second limit in iptables, or to implement the shaping in your software.



Top 50 recent answers are included