I’m documenting this more for my own reference than anything, partly because I’ve used ‘tc’ off and on over the years.
tc qdisc add dev tun0 root netem loss 30%
tc qdisc show dev tun0
tc qdisc change dev tun0 root netem loss 0.1%
When finished:
tc qdisc del dev tun0 root